1
0
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:
chris meyers 2020-03-17 09:25:21 -04:00 committed by Ryan Petrello
parent b58c71bb74
commit 59c9de2761
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

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