Fix bug where force_flag is a string

This commit is contained in:
Joshua Boniface 2024-08-20 10:10:33 -04:00
parent a6e824a049
commit faf920ac1d
2 changed files with 2 additions and 2 deletions

View File

@ -6061,7 +6061,7 @@ class API_Storage_Ceph_Volume_Root(Resource):
reqargs.get("pool", None),
reqargs.get("volume", None),
reqargs.get("size", None),
reqargs.get("force", False),
bool(strtobool(reqargs.get("force", "False"))),
)

View File

@ -1969,7 +1969,7 @@ def ceph_volume_list(zkhandler, pool=None, limit=None, is_fuzzy=True):
@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.
"""