def _prep_input(kwargs):
 for kwarg in ('environment', 'lxc_conf'):
  kwarg_value = kwargs.get(kwarg)
  if ((kwarg_value is not None) and (not isinstance(kwarg_value, six.string_types))):
   err = 'Invalid {0} configuration. See the documentation for proper usage.'.format(kwarg)
   if salt.utils.is_dictlist(kwarg_value):
    new_kwarg_value = salt.utils.repack_dictlist(kwarg_value)
    if (not kwarg_value):
     raise SaltInvocationError(err)
    kwargs[kwarg] = new_kwarg_value
   if (not isinstance(kwargs[kwarg], dict)):
    raise SaltInvocationError(err)

def _prep_input ( kwargs ) : for kwarg in ( 'environment' , 'lxc_conf' ) : kwarg_value = kwargs . get ( kwarg ) if ( ( kwarg_value is not None ) and ( not isinstance ( kwarg_value , six . string_types ) ) ) : err = 'Invalid {0} configuration. See the documentation for proper usage.' . format ( kwarg ) if salt . utils . is_dictlist ( kwarg_value ) : new_kwarg_value = salt . utils . repack_dictlist ( kwarg_value ) if ( not kwarg_value ) : raise SaltInvocationError ( err ) kwargs [ kwarg ] = new_kwarg_value if ( not isinstance ( kwargs [ kwarg ] , dict ) ) : raise SaltInvocationError ( err )
repack data that should be in a dict but is easier to configure in an sls file as a dictlist .