Skip to content

Commit

Permalink
fix editing of credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Oct 7, 2024
1 parent 3eb3cf0 commit 26a71c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Handle edge-case error of schedule
* Handle jobs without credentials
* Cleanup execution status if thread stopped
* Fix editing of credentials (*ssk-key invalid*)

----

Expand Down
3 changes: 3 additions & 0 deletions src/ansibleguy-webui/aw/api_endpoints/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def credentials_in_use(credentials: BaseJobCredentials) -> bool:


def _validate_and_fix_ssh_key(key: str) -> (str, None):
if is_null(key):
return ''

if key.find(SSH_KEY_PREFIX) == -1:
# only support unencrypted keys for now
return None
Expand Down

0 comments on commit 26a71c7

Please sign in to comment.