def mask_password(cmd):
 if ((len(cmd) > 3) and (cmd[0] == 'raidcom') and (cmd[1] == '-login')):
  tmp = list(cmd)
  tmp[3] = strutils.mask_dict_password({'password': ''}).get('password')
 else:
  tmp = cmd
 return ' '.join([six.text_type(c) for c in tmp])

def mask_password ( cmd ) : if ( ( len ( cmd ) > 3 ) and ( cmd [ 0 ] == 'raidcom' ) and ( cmd [ 1 ] == '-login' ) ) : tmp = list ( cmd ) tmp [ 3 ] = strutils . mask_dict_password ( { 'password' : '' } ) . get ( 'password' ) else : tmp = cmd return ' ' . join ( [ six . text_type ( c ) for c in tmp ] )
return a string in which the password is masked .