Apply CDIST_REMOTE_EXEC/COPY env vars.

This commit is contained in:
Darko Poljak 2016-03-18 23:52:24 +01:00
parent d0d0c258d6
commit d329db05e1

View file

@ -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']])