Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
808d9596
Commit
808d9596
authored
Sep 09, 2013
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing typos in is_keyid function definition and usage
Fixes #4068
parent
b3c0e3e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
library/packaging/rpm_key
+2
-2
No files found.
library/packaging/rpm_key
View file @
808d9596
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment