diff options
author | James Cammarata <jimi@sngx.net> | 2013-09-09 17:26:44 -0500 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2013-09-09 17:26:44 -0500 |
commit | 808d9596b23f782372e534debc423cd7a90ae865 (patch) | |
tree | a92b09b8eba5dd69438cd80df837f1a4dfb5c2dd /library/packaging/rpm_key | |
parent | b3c0e3e45e0878e6bb0080fcf3abb41a790c2c26 (diff) | |
download | ansible-808d9596b23f782372e534debc423cd7a90ae865.tar.gz |
Fixing typos in is_keyid function definition and usage
Fixes #4068
Diffstat (limited to 'library/packaging/rpm_key')
-rw-r--r-- | library/packaging/rpm_key | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/packaging/rpm_key b/library/packaging/rpm_key index 151f0bd977..babdc5e0c2 100644 --- a/library/packaging/rpm_key +++ b/library/packaging/rpm_key @@ -86,7 +86,7 @@ class RpmKey: keyfile = self.fetch_key(key) keyid = self.getkeyid(keyfile) should_cleanup_keyfile = True - elif is_keyid(key): + elif self.is_keyid(key): keyid = key elif os.path.isfile(key): keyfile = key @@ -147,7 +147,7 @@ class RpmKey: return keyid self.json_fail(msg="Unexpected gpg output") - def is_keyid(keystr): + def is_keyid(self, keystr): """Verifies if a key, as provided by the user is a keyid""" return re.match('(0x)?(0-9a-f){8}', keystr, flags=re.IGNORECASE) |