Skip to content

Commit

Permalink
Use the correct key for idempotency.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jun 17, 2024
1 parent aa05e75 commit 4bfd44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def main():
if should is None:
continue
# unfold the return object for the idempotence check to work correctly
has = existing.get(data_key)
has = existing.get(result_key)

Check warning on line 407 in plugins/modules/boot.py

View check run for this annotation

Codecov / codecov/patch

plugins/modules/boot.py#L407

Added line #L407 was not covered by tests
if has and option_key == 'authorized_keys':
has = [x['key']['fingerprint'] for x in has]
if isinstance(has, list):
Expand Down

0 comments on commit 4bfd44f

Please sign in to comment.