Skip to content

Commit f64115d

Browse files
committed
Add remove_storage_pool
1 parent 367ddc6 commit f64115d

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

juju/model.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,12 +907,21 @@ async def create_storage_pool(self, name, provider_type, attributes=""):
907907
attrs=dict(_attrs)
908908
)])
909909

910+
async def remove_storage_pool(self, name):
911+
"""Remove an existing storage pool.
912+
913+
:param str name:
914+
:return:
915+
"""
916+
storage_facade = client.StorageFacade.from_connection(self.connection)
917+
return await storage_facade.RemovePool(pools=[name])
918+
910919
async def remove_storage(self, force=False, destroy_storage=False, *storage_ids):
911920
"""Removes storage from the model.
912921
913-
:param force: Remove storage even if it is currently attached
914-
:param destroy_storage: Remove the storage and destroy it
915-
:param storage_ids:
922+
:param bool force: Remove storage even if it is currently attached
923+
:param bool destroy_storage: Remove the storage and destroy it
924+
:param []str storage_ids:
916925
:return:
917926
"""
918927
if not storage_ids:

0 commit comments

Comments
 (0)