From d740265e138f3bb30f8c18d5844be27610ad3d6b Mon Sep 17 00:00:00 2001 From: Filipe Niero Felisbino Date: Mon, 6 Oct 2014 12:49:20 -0300 Subject: [PATCH] Replace dev_string to dev_list --- lib/ansible/modules/extras/system/lvg.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/system/lvg.py b/lib/ansible/modules/extras/system/lvg.py index b7a86a27208..e568e9df677 100644 --- a/lib/ansible/modules/extras/system/lvg.py +++ b/lib/ansible/modules/extras/system/lvg.py @@ -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.") @@ -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: