Home | History | Annotate | Download | only in server

Lines Matching refs:machine

682 def get_hostname_from_machine(machine):
683 """Lookup hostname from a machine string or dict.
685 @returns: Machine hostname in string format.
687 hostname, _ = get_host_info_from_machine(machine)
691 def get_host_info_from_machine(machine):
692 """Lookup host information from a machine string or dict.
696 if isinstance(machine, dict):
697 return (machine['hostname'], machine['host_attributes'])
699 return (machine, {})
723 def machine_is_testbed(machine):
724 """Checks if the machine is a testbed.
726 The signal we use to determine if the machine is a testbed
729 @param machine: is a list of dicts
731 @return: True if the machine is a testbed, False otherwise.
733 _, attributes = get_host_info_from_machine(machine)