mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Use cmd_async instead of cmd when calling saltutil.revoke_auth (#32931)
Fixes #32896
This commit is contained in:
parent
c57a2b8f3b
commit
041ed11db5
@ -856,7 +856,7 @@ class Key(object):
|
||||
else:
|
||||
try:
|
||||
client = salt.client.get_local_client(mopts=self.opts)
|
||||
client.cmd(key, 'saltutil.revoke_auth')
|
||||
client.cmd_async(key, 'saltutil.revoke_auth')
|
||||
except salt.exceptions.SaltClientError:
|
||||
print('Cannot contact Salt master. '
|
||||
'Connection for {0} will remain up until '
|
||||
@ -1318,7 +1318,7 @@ class RaetKey(Key):
|
||||
else:
|
||||
try:
|
||||
client = salt.client.get_local_client(mopts=self.opts)
|
||||
client.cmd(key, 'saltutil.revoke_auth')
|
||||
client.cmd_async(key, 'saltutil.revoke_auth')
|
||||
except salt.exceptions.SaltClientError:
|
||||
print('Cannot contact Salt master. '
|
||||
'Connection for {0} will remain up until '
|
||||
|
Loading…
Reference in New Issue
Block a user