From 9aec58bff920f0c2461d322aaf7c974ad294473e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Loraine=20Gu=C3=A9guen?= <loraine-gueguen@users.noreply.github.com> Date: Mon, 22 Feb 2021 22:32:49 +0100 Subject: [PATCH] Always connect to galaxy with localhost as hostname --- gga_load_data.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/gga_load_data.py b/gga_load_data.py index 9d96dc2..f0501c5 100644 --- a/gga_load_data.py +++ b/gga_load_data.py @@ -375,15 +375,9 @@ if __name__ == "__main__": # Parse the config yaml file load_data_for_current_species.config = utilities.parse_config(args.config) # Set the instance url attribute - for env_variable, value in load_data_for_current_species.config.items(): - if env_variable == "hostname": - load_data_for_current_species.instance_url = "http://{0}:8888/sp/{1}_{2}/galaxy/".format( - value, load_data_for_current_species.genus_lowercase, load_data_for_current_species.species) - break - else: - load_data_for_current_species.instance_url = "http://localhost:8888/sp/{0}_{1}/galaxy/".format( - load_data_for_current_species.genus_lowercase, - load_data_for_current_species.species) + load_data_for_current_species.instance_url = "http://localhost:8888/sp/{0}_{1}/galaxy/".format( + load_data_for_current_species.genus_lowercase, + load_data_for_current_species.species) # Change serexec permissions in repo try: -- GitLab