def __update_gremlin_config_yaml(self):
    (node_ip, _) = self.network_interfaces['binary']
    conf_file = os.path.join(self.get_path(), 'resources', 'graph', 'gremlin-console', 'conf', 'remote.yaml')
    with open(conf_file, 'r') as f:
        data = yaml.load(f)
    data['hosts'] = [node_ip]
    with open(conf_file, 'w') as f:
        yaml.safe_dump(data, f, default_flow_style=False)
def __update_gremlin_config_yaml(self):
    (node_ip, _) = self.network_interfaces['binary']
    conf_file = os.path.join(self.get_path(), 'resources', 'graph', 'gremlin-console', 'conf', 'remote.yaml')
    with open(conf_file, 'r') as f:
        data = yaml.load(f)
    data['hosts'] = [node_ip]
    with open(conf_file, 'w') as f:
        yaml.safe_dump(data, f, default_flow_style=False)