def _setup_host_details(self): from amplify.agent.common.util.host import hostname, uuid self.hostname = hostname() self.uuid = uuid() # only change agent config if uuid is generated and store_uuid == True if (context.app_config['credentials'].get('store_uuid', False) and context.app_config['credentials']['uuid'] == ''): context.app_config.save('credentials', 'uuid', context.uuid)
def test_hostname_uuid_os(self): hostname = host.hostname() assert_that(hostname, is_not(None)) uuid = host.uuid() assert_that(uuid, is_not(None)) os_name = host.os_name() assert_that(os_name, is_not(None))
def display_name(self): # override abstrawct version for user-friendliness. return "phpfpm %s @ %s" % (self.name, hostname())
def _setup_host_details(self): from amplify.agent.common.util.host import hostname, uuid self.hostname = hostname() self.uuid = uuid()
def display_name(self): # override abstract version for user-friendliness. return "mysql @ %s" % hostname()