Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Fixed support for missing proxy settings.
Browse files Browse the repository at this point in the history
This helps address #97
  • Loading branch information
rmkraus committed Dec 1, 2020
1 parent 8b2c493 commit 4ef7699
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ def __getitem__(self, key):

def get(self, key, default=None):
self._last_key = key
return os.environ.get(key, default).replace('\\n', '\n')
val = os.environ.get(key, default)
try:
return val.replace('\\n', '\n')
except AttributeError:
return val

@property
def error(self):
Expand Down
7 changes: 7 additions & 0 deletions home/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@ export _CONFIG_LAST_LOAD="0"
export PROMPT_COMMAND=ps1
export KUBECONFIG=/data/openshift-installer/auth/kubeconfig

PYTHONPATH=/app/lib/python,/deps/python
PYTHONUSERBASE=/deps/python
ANSIBLE_COLLECTIONS_PATH=/deps/ansible
PATH=/deps/python/bin:$PATH



alias ll='ls -la'

0 comments on commit 4ef7699

Please sign in to comment.