Merge "Don't duplicate and shadow CGIT_URL"
This commit is contained in:
commit
7000770a70
@ -27,8 +27,8 @@ from six.moves.urllib.request import urlopen
|
|||||||
|
|
||||||
from openstack_election import utils
|
from openstack_election import utils
|
||||||
|
|
||||||
CGIT_URL = "http://git.openstack.org/cgit/openstack-infra/system-config/" \
|
OWNERS_URL = ('%s/openstack-infra/system-config/plain/tools/owners.py' %
|
||||||
"plain/tools/owners.py"
|
(utils.CGIT_URL))
|
||||||
|
|
||||||
# Exclude the system / bot accounts
|
# Exclude the system / bot accounts
|
||||||
# OpenStack Release Bot:
|
# OpenStack Release Bot:
|
||||||
@ -73,9 +73,9 @@ def main():
|
|||||||
|
|
||||||
os.chdir(os.path.dirname(args.rolls_dir))
|
os.chdir(os.path.dirname(args.rolls_dir))
|
||||||
if not args.cached_owners_script:
|
if not args.cached_owners_script:
|
||||||
print("Grabbing script from: %s" % CGIT_URL)
|
print("Grabbing script from: %s" % OWNERS_URL)
|
||||||
with open("owners.py", "wb") as owner_file:
|
with open("owners.py", "wb") as owner_file:
|
||||||
owner_file.write(urlopen(CGIT_URL).read())
|
owner_file.write(urlopen(OWNERS_URL).read())
|
||||||
|
|
||||||
sys.path.append(os.getcwd())
|
sys.path.append(os.getcwd())
|
||||||
import owners
|
import owners
|
||||||
|
Loading…
x
Reference in New Issue
Block a user