def chconfig(cmd, *args, **kwargs):
 for k in kwargs.keys():
  if k.startswith('__pub_'):
   kwargs.pop(k)
 if (('dracr.' + cmd) not in __salt__):
  ret = {'retcode': (-1), 'message': (('dracr.' + cmd) + ' is not available')}
 else:
  ret = __salt__[('dracr.' + cmd)](*args, **kwargs)
 if (cmd == 'change_password'):
  if ('username' in kwargs):
   __opts__['proxy']['admin_username'] = kwargs['username']
   DETAILS['admin_username'] = kwargs['username']
  if ('password' in kwargs):
   __opts__['proxy']['admin_password'] = kwargs['password']
   DETAILS['admin_password'] = kwargs['password']
 return ret

def chconfig ( cmd , * args , ** kwargs ) : for k in kwargs . keys ( ) : if k . startswith ( '__pub_' ) : kwargs . pop ( k ) if ( ( 'dracr.' + cmd ) not in __salt__ ) : ret = { 'retcode' : ( - 1 ) , 'message' : ( ( 'dracr.' + cmd ) + ' is not available' ) } else : ret = __salt__ [ ( 'dracr.' + cmd ) ] ( * args , ** kwargs ) if ( cmd == 'change_password' ) : if ( 'username' in kwargs ) : __opts__ [ 'proxy' ] [ 'admin_username' ] = kwargs [ 'username' ] DETAILS [ 'admin_username' ] = kwargs [ 'username' ] if ( 'password' in kwargs ) : __opts__ [ 'proxy' ] [ 'admin_password' ] = kwargs [ 'password' ] DETAILS [ 'admin_password' ] = kwargs [ 'password' ] return ret
this function is called by the :mod:salt .