Skip to content

Commit

Permalink
use protobuf enum for providerlist
Browse files Browse the repository at this point in the history
  • Loading branch information
rp- committed Apr 5, 2019
1 parent c184c0c commit 572128f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions linstor/linstorapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1419,15 +1419,7 @@ def provider_list(cls):
:return: Set of provider names
:rtype: set[str]
"""
return {
'lvm',
'lvmthin',
'zfs',
'zfsthin',
'swordfishtarget',
'swordfishinitiator',
'diskless'
}
return [ProviderType.ProviderType.Name(x).lower() for x in StoragePoolDriver.list()]

def resource_dfn_create(self, name, port=None, external_name=None, layer_list=None):
"""
Expand Down Expand Up @@ -1683,6 +1675,7 @@ def resource_auto_place(
:param bool diskless_on_remaining: If True all remaining nodes will add a diskless resource
:param bool async_msg: True to return without waiting for the action to complete on the satellites
:param list[str] layer_list: Define layers for the resource
:param list[str] provider_list: Filter provider kinds
:return: A list containing ApiCallResponses from the controller.
:rtype: list[ApiCallResponse]
"""
Expand Down

0 comments on commit 572128f

Please sign in to comment.