From 53cc94f826f51dda4f401107932a23e5b70ac28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCdepohl?= <lorenz.huedepohl@rzg.mpg.de> Date: Wed, 25 Jul 2018 10:28:20 +0200 Subject: [PATCH] Fix: arguments were swapped --- mpcdf_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpcdf_common.py b/mpcdf_common.py index 04c70d4..3e4344b 100644 --- a/mpcdf_common.py +++ b/mpcdf_common.py @@ -157,7 +157,7 @@ def mpcdf_enable_repositories(api_url, project, package, verbose=False): print("Warning: Could not get attribute MPCDF:enable_repositories for package {0}, skipping".format(package)) return False - def try_get_attribute(attribute, package, with_project=False): + def try_get_attribute(package, attribute, with_project=False): try: return get_attribute_values(api_url, project, package, "MPCDF:" + attribute, with_project=with_project) except UnsetAttributeException: -- GitLab