mirror of
https://github.com/ansible/awx.git
synced 2024-10-27 17:55:10 +03:00
awxkit python2.7 compatible print
* awxkit still supports python2.7 so do not use fancy f"" yet; instead, use .format()
This commit is contained in:
parent
b58c71bb74
commit
59c9de2761
@ -191,7 +191,7 @@ class WSClient(object):
|
||||
self._pending_unsubscribe.clear()
|
||||
self._send(json.dumps(dict(groups={}, xrftoken=self.csrftoken)))
|
||||
if not self._pending_unsubscribe.wait(timeout):
|
||||
raise RuntimeError(f"Failed while waiting on unsubscribe reply because timeout of {timeout} seconds was reached.")
|
||||
raise RuntimeError("Failed while waiting on unsubscribe reply because timeout of {} seconds was reached.".format(timeout))
|
||||
else:
|
||||
self._send(json.dumps(dict(groups={}, xrftoken=self.csrftoken)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user