Skip to content

Commit

Permalink
Use --mode=script always while running gluster commands (ansible#54843)…
Browse files Browse the repository at this point in the history
  • Loading branch information
sac authored and ansibot committed Apr 5, 2019
1 parent 6f5aacc commit aaf6262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/modules/storage/glusterfs/gluster_peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def gluster_peer_ops(self):
self.call_peer_commands()

def get_to_be_probed_hosts(self, hosts):
peercmd = [self.glustercmd, 'pool', 'list']
peercmd = [self.glustercmd, 'pool', 'list', '--mode=script']
rc, output, err = self.module.run_command(peercmd,
environ_update=self.lang)
peers_in_cluster = [line.split('\t')[1].strip() for
Expand All @@ -124,7 +124,7 @@ def call_peer_commands(self):
result['changed'] = False

for node in self.nodes:
peercmd = [self.glustercmd, 'peer', self.action, node]
peercmd = [self.glustercmd, 'peer', self.action, node, '--mode=script']
if self.force:
peercmd.append(self.force)
rc, out, err = self.module.run_command(peercmd,
Expand Down

0 comments on commit aaf6262

Please sign in to comment.