def show_all_prices(call=None, kwargs=None):
 if (call == 'action'):
  raise SaltCloudSystemExit('The show_all_prices function must be called with -f or --function.')
 if (kwargs is None):
  kwargs = {}
 conn = get_conn(service='SoftLayer_Product_Package')
 if ('code' not in kwargs):
  return conn.getCategories(id=50)
 ret = {}
 for category in conn.getCategories(id=50):
  if (category['categoryCode'] != kwargs['code']):
   continue
  for group in category['groups']:
   for price in group['prices']:
    ret[price['id']] = price['item'].copy()
    del ret[price['id']]['id']
 return ret

def show_all_prices ( call = None , kwargs = None ) : if ( call == 'action' ) : raise SaltCloudSystemExit ( 'The show_all_prices function must be called with -f or --function.' ) if ( kwargs is None ) : kwargs = { } conn = get_conn ( service = 'SoftLayer_Product_Package' ) if ( 'code' not in kwargs ) : return conn . getCategories ( id = 50 ) ret = { } for category in conn . getCategories ( id = 50 ) : if ( category [ 'categoryCode' ] != kwargs [ 'code' ] ) : continue for group in category [ 'groups' ] : for price in group [ 'prices' ] : ret [ price [ 'id' ] ] = price [ 'item' ] . copy ( ) del ret [ price [ 'id' ] ] [ 'id' ] return ret
return a dict of all prices on the cloud provider .