示例#1
0
    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)
示例#2
0
    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))
示例#3
0
    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))
示例#4
0
 def display_name(self):
     # override abstrawct version for user-friendliness.
     return "phpfpm %s @ %s" % (self.name, hostname())
示例#5
0
 def _setup_host_details(self):
     from amplify.agent.common.util.host import hostname, uuid
     self.hostname = hostname()
     self.uuid = uuid()
示例#6
0
 def _setup_host_details(self):
     from amplify.agent.common.util.host import hostname, uuid
     self.hostname = hostname()
     self.uuid = uuid()
示例#7
0
 def display_name(self):
     # override abstract version for user-friendliness.
     return "mysql @ %s" % hostname()