Use local owners module
Instead of pulling owners.py from the system-config repo, start using the local copy provided by the openstack_election package. Change-Id: I180ef0e5ec880b46f0427c1c952b640a780b5732
This commit is contained in:
parent
50ad63db02
commit
bc06522374
@ -25,11 +25,9 @@ import time
|
|||||||
|
|
||||||
from six.moves.urllib.request import urlopen
|
from six.moves.urllib.request import urlopen
|
||||||
|
|
||||||
|
from openstack_election import owners
|
||||||
from openstack_election import utils
|
from openstack_election import utils
|
||||||
|
|
||||||
OWNERS_URL = ('%s/openstack-infra/system-config/plain/tools/owners.py' %
|
|
||||||
(utils.CGIT_URL))
|
|
||||||
|
|
||||||
# Exclude the system / bot accounts
|
# Exclude the system / bot accounts
|
||||||
# OpenStack Release Bot:
|
# OpenStack Release Bot:
|
||||||
# curl https://review.openstack.org/accounts/22816
|
# curl https://review.openstack.org/accounts/22816
|
||||||
@ -72,13 +70,6 @@ def main():
|
|||||||
os.makedirs(args.rolls_dir, 0o700)
|
os.makedirs(args.rolls_dir, 0o700)
|
||||||
|
|
||||||
os.chdir(os.path.dirname(args.rolls_dir))
|
os.chdir(os.path.dirname(args.rolls_dir))
|
||||||
if not args.cached_owners_script:
|
|
||||||
print("Grabbing script from: %s" % OWNERS_URL)
|
|
||||||
with open("owners.py", "wb") as owner_file:
|
|
||||||
owner_file.write(urlopen(OWNERS_URL).read())
|
|
||||||
|
|
||||||
sys.path.append(os.getcwd())
|
|
||||||
import owners
|
|
||||||
print("Starting roll generation @%s" % time.ctime())
|
print("Starting roll generation @%s" % time.ctime())
|
||||||
owners.main(["owners.py", "-a", args.after, "-b", args.before,
|
owners.main(["owners.py", "-a", args.after, "-b", args.before,
|
||||||
"-o", args.tag, "-r", args.tag] + MINUS_BOT_ACCOUNTS)
|
"-o", args.tag, "-r", args.tag] + MINUS_BOT_ACCOUNTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user