Use cmd_async instead of cmd when calling saltutil.revoke_auth (#32931)

Fixes #32896
This commit is contained in:
Nicole Thomas 2016-04-29 10:45:46 -06:00 committed by Mike Place
parent c57a2b8f3b
commit 041ed11db5

View File

@ -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 '