Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #56 from filipenf/fix-lvg
Browse files Browse the repository at this point in the history
LVG module fix when using multiple devices (string to list)
  • Loading branch information
bcoca committed Nov 6, 2014
2 parents ad181b7 + 6cfb97a commit 664858e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions system/lvg.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def main():
vgoptions = module.params['vg_options'].split()

if module.params['pvs']:
dev_string = ' '.join(module.params['pvs'])
dev_list = module.params['pvs']
elif state == 'present':
module.fail_json(msg="No physical volumes given.")
Expand Down Expand Up @@ -188,7 +187,7 @@ def main():
else:
module.fail_json(msg="Creating physical volume '%s' failed" % current_dev, rc=rc, err=err)
vgcreate_cmd = module.get_bin_path('vgcreate')
rc,_,err = module.run_command([vgcreate_cmd] + vgoptions + ['-s', str(pesize), vg, dev_string])
rc,_,err = module.run_command([vgcreate_cmd] + vgoptions + ['-s', str(pesize), vg] + dev_list)
if rc == 0:
changed = True
else:
Expand Down

0 comments on commit 664858e

Please sign in to comment.