def set_mindays(name, mindays):
 pre_info = info(name)
 if (mindays == pre_info['min']):
  return True
 cmd = 'passwd -n {0} {1}'.format(mindays, name)
 __salt__['cmd.run'](cmd, python_shell=False)
 post_info = info(name)
 if (post_info['min'] != pre_info['min']):
  return (post_info['min'] == mindays)
 return False

def set_mindays ( name , mindays ) : pre_info = info ( name ) if ( mindays == pre_info [ 'min' ] ) : return True cmd = 'passwd -n {0} {1}' . format ( mindays , name ) __salt__ [ 'cmd.run' ] ( cmd , python_shell = False ) post_info = info ( name ) if ( post_info [ 'min' ] != pre_info [ 'min' ] ) : return ( post_info [ 'min' ] == mindays ) return False
set the minimum number of days between password changes .