Commit 414a5b4e by Marcus Cobden

Only remove leading '0x' from key ids, not all 0s

parent e0fbaea5
......@@ -191,7 +191,8 @@ def main():
if key_id:
try:
_ = int(key_id, 16)
key_id = key_id.lstrip('0x')
if key_id.startswith('0x'):
key_id = key_id[2:]
except ValueError:
module.fail_json("Invalid key_id")
......
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