def get_plan_id(kwargs=None, call=None):
 if (call == 'action'):
  raise SaltCloudException('The show_instance action must be called with -f or --function.')
 if (kwargs is None):
  kwargs = {}
 label = kwargs.get('label', None)
 if (label is None):
  raise SaltCloudException("The get_plan_id function requires a 'label'.")
 return avail_sizes()[label]['PLANID']

def get_plan_id ( kwargs = None , call = None ) : if ( call == 'action' ) : raise SaltCloudException ( 'The show_instance action must be called with -f or --function.' ) if ( kwargs is None ) : kwargs = { } label = kwargs . get ( 'label' , None ) if ( label is None ) : raise SaltCloudException ( "The get_plan_id function requires a 'label'." ) return avail_sizes ( ) [ label ] [ 'PLANID' ]
returns the linode plan id .