mirror of
https://github.com/ansible/awx.git
synced 2026-03-16 16:37:30 -02:30
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:
committed by
Ryan Petrello
parent
b58c71bb74
commit
59c9de2761
@@ -191,7 +191,7 @@ class WSClient(object):
|
|||||||
self._pending_unsubscribe.clear()
|
self._pending_unsubscribe.clear()
|
||||||
self._send(json.dumps(dict(groups={}, xrftoken=self.csrftoken)))
|
self._send(json.dumps(dict(groups={}, xrftoken=self.csrftoken)))
|
||||||
if not self._pending_unsubscribe.wait(timeout):
|
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:
|
else:
|
||||||
self._send(json.dumps(dict(groups={}, xrftoken=self.csrftoken)))
|
self._send(json.dumps(dict(groups={}, xrftoken=self.csrftoken)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user