def show_all_categories(call=None):
 if (call == 'action'):
  raise SaltCloudSystemExit('The show_all_categories function must be called with -f or --function.')
 conn = get_conn(service='SoftLayer_Product_Package')
 categories = []
 for category in conn.getCategories(id=50):
  categories.append(category['categoryCode'])
 return {'category_codes': categories}

def show_all_categories ( call = None ) : if ( call == 'action' ) : raise SaltCloudSystemExit ( 'The show_all_categories function must be called with -f or --function.' ) conn = get_conn ( service = 'SoftLayer_Product_Package' ) categories = [ ] for category in conn . getCategories ( id = 50 ) : categories . append ( category [ 'categoryCode' ] ) return { 'category_codes' : categories }
return a dict of all available categories on the cloud provider .