-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Galaxykit Remotes, Distributions and Repositories - create and delete #87
Conversation
de5b19f
to
508c91f
Compare
ad61948
to
c5ffc99
Compare
galaxykit/utils.py
Outdated
|
||
|
||
def parse_pulp_id(pulp_href): | ||
return pulp_href.split("/")[-2] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the index can vary depending on where the href comes from .. if you're putting this in utils, it should be looking for the uuid
.. it's already implemented as tasks.pulp_href_to_id
, maybe move that one here?
.. also implemented as roles.pulp_href_to_id
(and should, but isn't used in containers.add_owner_to_ee
(ns_id
))
The rest looks good 👍 :) |
No-Issue
Tested in ansible/ansible-hub-ui#3574 (https://github.com/ansible/ansible-hub-ui/actions/runs/4682109624/jobs/8295536826?pr=3574)
... fixing |
…#87) * Remotes and Repositories - create and delete * Creates also distribution * Distributions * Black and add distribution.py * parsing href into id * Renaming the help texts. * pulp_href_to_id: fix missing re import, use for one more slash split --------- Co-authored-by: Martin Hradil <mhradil@redhat.com>
https://issues.redhat.com/browse/AAH-2243