diff options
author | Jan Safranek <jsafrane@redhat.com> | 2013-11-19 10:59:28 +0100 |
---|---|---|
committer | Jan Safranek <jsafrane@redhat.com> | 2013-11-19 10:59:28 +0100 |
commit | ec4843e85d71b22da7e543c83a3d51f046ae37a0 (patch) | |
tree | 7cbcf977fba2ca78bd8b822ffa63b964b2ece50d /commands/storage/lmi | |
parent | 9f270156e92215c5bfce86bc30686b0e3775e98a (diff) | |
download | openlmi-scripts-ec4843e85d71b22da7e543c83a3d51f046ae37a0.tar.gz openlmi-scripts-ec4843e85d71b22da7e543c83a3d51f046ae37a0.tar.xz openlmi-scripts-ec4843e85d71b22da7e543c83a3d51f046ae37a0.zip |
Fixed crashing create_vg with nozero extent size.
Diffstat (limited to 'commands/storage/lmi')
-rw-r--r-- | commands/storage/lmi/scripts/storage/lvm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/storage/lmi/scripts/storage/lvm.py b/commands/storage/lmi/scripts/storage/lvm.py index 0d788ad..f5b8f54 100644 --- a/commands/storage/lmi/scripts/storage/lvm.py +++ b/commands/storage/lmi/scripts/storage/lvm.py @@ -145,6 +145,7 @@ def create_vg(ns, devices, name, extent_size=None): raise LmiFailed("Cannot create setting for the volume group:" \ " %s." % (vals.value_name(ret),)) goal = outparams['Setting'] + goal = goal.to_instance() goal.ExtentSize = extent_size (ret, outparams, err) = goal.push() if ret != 0: |