mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 11:40:22 -07:00
This commit is contained in:
parent
6f5aacc168
commit
aaf6262ff9
1 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ class Peer(object):
|
||||||
self.call_peer_commands()
|
self.call_peer_commands()
|
||||||
|
|
||||||
def get_to_be_probed_hosts(self, hosts):
|
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,
|
rc, output, err = self.module.run_command(peercmd,
|
||||||
environ_update=self.lang)
|
environ_update=self.lang)
|
||||||
peers_in_cluster = [line.split('\t')[1].strip() for
|
peers_in_cluster = [line.split('\t')[1].strip() for
|
||||||
|
@ -124,7 +124,7 @@ class Peer(object):
|
||||||
result['changed'] = False
|
result['changed'] = False
|
||||||
|
|
||||||
for node in self.nodes:
|
for node in self.nodes:
|
||||||
peercmd = [self.glustercmd, 'peer', self.action, node]
|
peercmd = [self.glustercmd, 'peer', self.action, node, '--mode=script']
|
||||||
if self.force:
|
if self.force:
|
||||||
peercmd.append(self.force)
|
peercmd.append(self.force)
|
||||||
rc, out, err = self.module.run_command(peercmd,
|
rc, out, err = self.module.run_command(peercmd,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue