mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 21:35:01 -02:30
Update consumers.py
Caught a syntax issue at line number 78, modified the syntax to return correct value of nonce_diff.
This commit is contained in:
@@ -75,7 +75,7 @@ class WebsocketSecretAuthHelper:
|
|||||||
nonce_diff = now - nonce_parsed
|
nonce_diff = now - nonce_parsed
|
||||||
if abs(nonce_diff) > nonce_tolerance:
|
if abs(nonce_diff) > nonce_tolerance:
|
||||||
logger.warn(f"Potential replay attack or machine(s) time out of sync by {nonce_diff} seconds.")
|
logger.warn(f"Potential replay attack or machine(s) time out of sync by {nonce_diff} seconds.")
|
||||||
raise ValueError("Potential replay attack or machine(s) time out of sync by {nonce_diff} seconds.")
|
raise ValueError(f"Potential replay attack or machine(s) time out of sync by {nonce_diff} seconds.")
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user