Giuseppe Lavagetto has submitted this change and it was merged.

Change subject: git-deploy: fixup for Ied4bcde607
......................................................................


git-deploy: fixup for Ied4bcde607

Change-Id: Iea98123236a91709f074327faa162e99bb4976ce
---
M modules/deployment/files/modules/deploy.py
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Giuseppe Lavagetto: Verified; Looks good to me, approved



diff --git a/modules/deployment/files/modules/deploy.py 
b/modules/deployment/files/modules/deploy.py
index d3c78c3..8aba363 100644
--- a/modules/deployment/files/modules/deploy.py
+++ b/modules/deployment/files/modules/deploy.py
@@ -772,7 +772,7 @@
         return {}
 
 
-def fixurl(git_server):
+def fixurl():
     """
     Allows to recursively fix all the remotes in git repositories on a target.
     """
@@ -788,7 +788,7 @@
 
         cmd = '/usr/bin/git remote set-url origin {0}/.git'.format(
             conf['url'])
-        retval = __salt__['cmd.retcode'](cmd, cwd=repo_config['location'])
+        retval = __salt__['cmd.retcode'](cmd, cwd=conf['location'])
         if retval != 0:
             return retval
     return 0

-- 
To view, visit https://gerrit.wikimedia.org/r/266246
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iea98123236a91709f074327faa162e99bb4976ce
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to