def _setup_properties(self, properties, function):
     """Use defined schema properties as kwargs for loadbalancer objects."""
     if properties and function:
         return [function(**self._remove_none(item_dict))
                 for item_dict in properties]
     elif function:
         return [function()]
Exemple #2
0
 def _setup_properties(self, properties, function):
     """Use defined schema properties as kwargs for loadbalancer objects."""
     if properties and function:
         return [function(**self._remove_none(item_dict))
                 for item_dict in properties]
     elif function:
         return [function()]