From d522a11f8e129f004598c2c0eff7bda982901c6f Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Feb 16 2017 21:40:08 +0000 Subject: fix bug in fedcontainer_rc formatting of registry repositories Signed-off-by: Adam Miller --- diff --git a/ansible/library/fedcontainer_rc.py b/ansible/library/fedcontainer_rc.py index 894bd42..2c3394e 100755 --- a/ansible/library/fedcontainer_rc.py +++ b/ansible/library/fedcontainer_rc.py @@ -115,7 +115,7 @@ def get_releasecandidates(release_num): # shorthand Name and Name-Version references as well fnvr_split = full_nvr.split('-') rclist.append("{}/{}:{}".format(fgc, '-'.join(fnvr_split[:-2]), '-'.join(fnvr_split[-2:]))) - rclist.append("{}/{}".format(fgc, ':'.join(fnvr_split[:-1]))) + rclist.append("{}/{}:{}".format(fgc, '-'.join(fnvr_split[:-2]),fnvr_split[-2:][0])) rclist.append("{}/{}".format(fgc, ':'.join(fnvr_split[:-2]))) except IndexError: # This happens when we have a container branched in pkgdb but nobody