def ssh_usernames(vm_, opts, default_users=None):
 if (default_users is None):
  default_users = ['root']
 usernames = salt.config.get_cloud_config_value('ssh_username', vm_, opts)
 if (not isinstance(usernames, list)):
  usernames = [usernames]
 usernames = [x for x in usernames if x]
 initial = usernames[:]
 for name in default_users:
  if (name not in usernames):
   usernames.append(name)
 usernames.extend(initial)
 return usernames

def ssh_usernames ( vm_ , opts , default_users = None ) : if ( default_users is None ) : default_users = [ 'root' ] usernames = salt . config . get_cloud_config_value ( 'ssh_username' , vm_ , opts ) if ( not isinstance ( usernames , list ) ) : usernames = [ usernames ] usernames = [ x for x in usernames if x ] initial = usernames [ : ] for name in default_users : if ( name not in usernames ) : usernames . append ( name ) usernames . extend ( initial ) return usernames
return the ssh_usernames .