forked from ungleich-public/cdist
Apply CDIST_REMOTE_EXEC/COPY env vars.
This commit is contained in:
parent
d0d0c258d6
commit
d329db05e1
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ def commandline():
|
||||||
cdist.REMOTE_EXEC += MUX_OPTS
|
cdist.REMOTE_EXEC += MUX_OPTS
|
||||||
if not has_env_remote_copy:
|
if not has_env_remote_copy:
|
||||||
cdist.REMOTE_COPY += MUX_OPTS
|
cdist.REMOTE_COPY += MUX_OPTS
|
||||||
|
if has_env_remote_exec:
|
||||||
|
cdist.REMOTE_EXEC = os.environ['CDIST_REMOTE_EXEC']
|
||||||
|
if has_env_remote_copy:
|
||||||
|
cdist.REMOTE_COPY = os.environ['CDIST_REMOTE_COPY']
|
||||||
|
|
||||||
parser['config'] = parser['sub'].add_parser('config',
|
parser['config'] = parser['sub'].add_parser('config',
|
||||||
parents=[parser['loglevel']])
|
parents=[parser['loglevel']])
|
||||||
|
|
Loading…
Reference in a new issue