Fix bug where force_flag is a string
This commit is contained in:
parent
a6e824a049
commit
faf920ac1d
|
@ -6061,7 +6061,7 @@ class API_Storage_Ceph_Volume_Root(Resource):
|
||||||
reqargs.get("pool", None),
|
reqargs.get("pool", None),
|
||||||
reqargs.get("volume", None),
|
reqargs.get("volume", None),
|
||||||
reqargs.get("size", None),
|
reqargs.get("size", None),
|
||||||
reqargs.get("force", False),
|
bool(strtobool(reqargs.get("force", "False"))),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1969,7 +1969,7 @@ def ceph_volume_list(zkhandler, pool=None, limit=None, is_fuzzy=True):
|
||||||
|
|
||||||
|
|
||||||
@ZKConnection(config)
|
@ZKConnection(config)
|
||||||
def ceph_volume_add(zkhandler, pool, name, size, force_flag):
|
def ceph_volume_add(zkhandler, pool, name, size, force_flag=False):
|
||||||
"""
|
"""
|
||||||
Add a Ceph RBD volume to the PVC Ceph storage cluster.
|
Add a Ceph RBD volume to the PVC Ceph storage cluster.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue