def _update_environment(self, session): """Create the environment from settings. Creates the environment in graph. :param session: Neo4j driver session. :type session: neo4j.v1.session.BoltSession :returns: Environment object :rtype: HostEntity """ env = EnvironmentEntity( account_number=self.run.environment_account_number, name=self.run.environment_name ) env.update(session, self.time_in_ms) return env
def _update_environment(self, session): """Create the environment from settings. Creates the environment in graph. :param session: Neo4j driver session. :type session: neo4j.v1.session.BoltSession :returns: Environment object :rtype: HostEntity """ env = EnvironmentEntity( uuid=self.run.environment_uuid, account_number=self.run.environment_account_number, name=self.run.environment_name, last_sync=self.time_in_ms, status='na' ) # TODO - Update status to something real in the future. env.update(session, self.time_in_ms) return env