Merge ~chad.smith/cloud-init:tools/migrate-script-v2 into cloud-init:master

Proposed by Chad Smith
Status: Merged
Approved by: Chad Smith
Approved revision: a6598cb8f85e607e24280538f154edfc1c5dec50
Merge reported by: Server Team CI bot
Merged at revision: not available
Proposed branch: ~chad.smith/cloud-init:tools/migrate-script-v2
Merge into: cloud-init:master
Diff against target: 22 lines (+2/-2)
1 file modified
tools/migrate-lp-user-to-github (+2/-2)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
cloud-init Commiters Pending
Review via email: mp+375273@code.launchpad.net

Commit message

tools: migrate script needs to write tools/.lp-to-git-user

Also fix commit message lint

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/tools/migrate-lp-user-to-github b/tools/migrate-lp-user-to-github
index 6b095a1..f012d31 100755
--- a/tools/migrate-lp-user-to-github
+++ b/tools/migrate-lp-user-to-github
@@ -56,7 +56,7 @@ GITHUB_REMOTE_PATH_TMPL = 'git@github.com:{github_user}/cloud-init.git'
5656
5757
58# Comment templates58# Comment templates
59COMMIT_MSG_TMPL = '''59COMMIT_MSG_TMPL = '''\
60lp-to-git-users: adding {gh_username}60lp-to-git-users: adding {gh_username}
6161
62Mapped from {lp_username}62Mapped from {lp_username}
@@ -146,7 +146,7 @@ def create_migration_branch(
146 MIGRATE_BRANCH_NAME))146 MIGRATE_BRANCH_NAME))
147 create_publish_branch(upstream, MIGRATE_BRANCH_NAME)147 create_publish_branch(upstream, MIGRATE_BRANCH_NAME)
148 lp_to_git_map = {}148 lp_to_git_map = {}
149 lp_to_git_file = os.path.join(os.getcwd(), LP_TO_GIT_USER_FILE)149 lp_to_git_file = os.path.join(os.getcwd(), 'tools', LP_TO_GIT_USER_FILE)
150 if os.path.exists(lp_to_git_file):150 if os.path.exists(lp_to_git_file):
151 with open(lp_to_git_file) as stream:151 with open(lp_to_git_file) as stream:
152 lp_to_git_map = util.load_json(stream.read())152 lp_to_git_map = util.load_json(stream.read())

Subscribers

People subscribed via source and target branches