mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix broken backup. (#54290)
This commit is contained in:
committed by
Martin Krizek
parent
534c833bb3
commit
5d460ae865
@@ -273,7 +273,7 @@ class PrivateKeyBase(crypto_utils.OpenSSLObject):
|
||||
self.fingerprint = {}
|
||||
|
||||
self.backup = module.params['backup']
|
||||
self.backup_path = None
|
||||
self.backup_file = None
|
||||
|
||||
self.mode = module.params.get('mode', None)
|
||||
if self.mode is None:
|
||||
@@ -352,8 +352,8 @@ class PrivateKeyBase(crypto_utils.OpenSSLObject):
|
||||
'changed': self.changed,
|
||||
'fingerprint': self.fingerprint,
|
||||
}
|
||||
if self.backup_path:
|
||||
result['backup_path'] = self.backup_path
|
||||
if self.backup_file:
|
||||
result['backup_file'] = self.backup_file
|
||||
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user