Skip to content

Commit

Permalink
Merge pull request #109 from richm/add-src-owner
Browse files Browse the repository at this point in the history
add src_owner to release_collection.py pass through to lsr_role2collection
  • Loading branch information
richm authored Nov 23, 2021
2 parents 411f58b + 09b30d0 commit 4edb9d8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions release_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def role_to_collection(
sys.executable,
"lsr_role2collection.py",
"--src-owner",
DEFAULT_GIT_ORG,
args.src_owner,
"--role",
rolename,
"--src-path",
Expand Down Expand Up @@ -317,7 +317,7 @@ def update_collection(args, galaxy, coll_rel):
args,
rolename,
coll_rel[rolename]["ref"],
coll_rel[rolename].get("org", DEFAULT_GIT_ORG),
coll_rel[rolename].get("org", args.src_owner),
coll_rel[rolename].get("repo", rolename),
)
if tag or cm_hash:
Expand Down Expand Up @@ -494,6 +494,12 @@ def main():
default=os.environ.get("COLLECTION_SRC_PATH"),
help="Path to the directory containing the local clone of the role repos",
)
parser.add_argument(
"--src-owner",
type=str,
default=os.environ.get("COLLECTION_SRC_OWNER", DEFAULT_GIT_ORG),
help="Name of the role owner, in legacy role format OWNER.ROLENAME",
)
parser.add_argument(
"--dest-path",
type=str,
Expand Down

0 comments on commit 4edb9d8

Please sign in to comment.