Commit 4484ba8a by Michael DeHaan

Merge pull request #4553 from mmoya/features

Do key validation only when key is provided
parents 64809451 2592b2c3
...@@ -188,6 +188,7 @@ def main(): ...@@ -188,6 +188,7 @@ def main():
state = module.params['state'] state = module.params['state']
changed = False changed = False
if key_id:
try: try:
_ = int(key_id, 16) _ = int(key_id, 16)
key_id = key_id.lstrip('0x') 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