def get_plan_id(kwargs=None, call=None):
    '''
    Returns the Linode Plan ID.

    label
        The label, or name, of the plan to get the ID from.

    CLI Example:

    .. code-block:: bash

        salt-cloud -f get_plan_id linode label="Linode 1024"
    '''
    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\'.'
        )

    label = _decode_linode_plan_label(label)

    return label
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\'.' ) label = _decode_linode_plan_label ( label ) return label
Returns the Linode Plan ID.

    label
        The label, or name, of the plan to get the ID from.

    CLI Example:

    .. code-block:: bash

        salt-cloud -f get_plan_id linode label="Linode 1024"