summaryrefslogtreecommitdiffstats
path: root/mod/distributorapi/distributor/config.py
diff options
context:
space:
mode:
authorHansen, Tony (th1395) <th1395@att.com>2022-08-05 22:16:14 +0000
committerHansen, Tony (th1395) <th1395@att.com>2022-08-17 22:10:23 +0000
commitc83d2369eb2f0ac40d5acd2db2d7350fe86101e5 (patch)
treed4549e4aca7248f63a0417d6718a1cfb8445a1ea /mod/distributorapi/distributor/config.py
parent2b31b78fb0c6621259898c3553187be4ab0acf8a (diff)
codecoverage improvement
Change-Id: I69cdb741c1e07a096ddd7c85921326070fb08a92 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com> Issue-ID: DCAEGEN2-3170 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Diffstat (limited to 'mod/distributorapi/distributor/config.py')
-rw-r--r--mod/distributorapi/distributor/config.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/mod/distributorapi/distributor/config.py b/mod/distributorapi/distributor/config.py
index d83eee1..2195220 100644
--- a/mod/distributorapi/distributor/config.py
+++ b/mod/distributorapi/distributor/config.py
@@ -1,5 +1,5 @@
# ============LICENSE_START=======================================================
-# Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2019-2022 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -28,11 +28,10 @@ def _grab_env(name, default=None):
except KeyError:
raise errors.DistributorAPIConfigError("Required environment variable missing: {0}".format(name))
+
def init():
global nifi_registry_url
- nifi_registry_url = _grab_env("NIFI_REGISTRY_URL"
- , default="http://nifi-registry:18080/nifi-registry-api")
+ nifi_registry_url = _grab_env("NIFI_REGISTRY_URL", default="http://nifi-registry:18080/nifi-registry-api")
global onboarding_api_url
- onboarding_api_url = _grab_env("ONBOARDING_API_URL"
- , default="http://onboarding-api:8080/onboarding")
+ onboarding_api_url = _grab_env("ONBOARDING_API_URL", default="http://onboarding-api:8080/onboarding")