Merge pull request #4727 from leth/apt-key-leading-zeros

Only remove leading '0x' from apt key ids, not all 0s
reviewable/pr18780/r1
Michael DeHaan 11 years ago
commit 98b23de9ab

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

Loading…
Cancel
Save