Skip to content

Commit

Permalink
Merge pull request #1090 from grycap/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
micafer authored Nov 27, 2020
2 parents 1036a96 + ebe0a01 commit cec7ee7
Show file tree
Hide file tree
Showing 4 changed files with 205 additions and 83 deletions.
2 changes: 1 addition & 1 deletion IM/ConfManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ def change_master_credentials(self, ssh):
# passwd value
if passwd and new_passwd:
self.log_info("Changing password to master VM")
(out, err, code) = ssh.execute('echo "' + passwd + '" | sudo -S bash -c \'echo "' +
(out, err, code) = ssh.execute('echo "' + passwd + '" | sudo -S sh -c \'echo "' +
user + ':' + new_passwd +
'" | /usr/sbin/chpasswd && echo "OK"\' 2> /dev/null')

Expand Down
Loading

0 comments on commit cec7ee7

Please sign in to comment.