Commit 2592b2c3 by Maykel Moya

Do key validation only when key is provided

key_id is optional, the previous code didn't handle the case of key_id
not specified
parent 64809451
......@@ -188,6 +188,7 @@ def main():
state = module.params['state']
changed = False
if key_id:
try:
_ = int(key_id, 16)
key_id = key_id.lstrip('0x')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment