mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-28 15:57:23 +00:00
parent
6dcc74a388
commit
3eb0b768a6
@ -161,7 +161,8 @@ class ChangeSecretManager(AccountBasePlaybookManager):
|
|||||||
print("Account not found, deleted ?")
|
print("Account not found, deleted ?")
|
||||||
return
|
return
|
||||||
account.secret = recorder.new_secret
|
account.secret = recorder.new_secret
|
||||||
account.save(update_fields=['secret'])
|
account.date_updated = timezone.now()
|
||||||
|
account.save(update_fields=['secret', 'date_updated'])
|
||||||
|
|
||||||
def on_host_error(self, host, error, result):
|
def on_host_error(self, host, error, result):
|
||||||
recorder = self.name_recorder_mapper.get(host)
|
recorder = self.name_recorder_mapper.get(host)
|
||||||
|
Loading…
Reference in New Issue
Block a user