diff options
author | dongwenjuan <dong.wenjuan@zte.com.cn> | 2018-08-01 11:25:28 +0800 |
---|---|---|
committer | dongwenjuan <dong.wenjuan@zte.com.cn> | 2018-08-01 11:25:28 +0800 |
commit | 9bc09d1d18d4777438515393a9427fc0733e6f09 (patch) | |
tree | 33a4643dc66283eec7aa823c1d9806328349b1ac /doctor_tests/installer/__init__.py | |
parent | e70bf248daac03eee6b449cd1654d2ee6265dd8c (diff) |
add ssh_keyfile for connect to installer in Apex
Change-Id: I8809a24e75c0260f67d3e128b8bbd1becf924529
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'doctor_tests/installer/__init__.py')
-rw-r--r-- | doctor_tests/installer/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doctor_tests/installer/__init__.py b/doctor_tests/installer/__init__.py index 31fce754..ee44018c 100644 --- a/doctor_tests/installer/__init__.py +++ b/doctor_tests/installer/__init__.py @@ -24,6 +24,10 @@ OPTS = [ default='root', help='the user name for login installer server', required=True), + cfg.StrOpt('key_file', + default=os.environ.get('SSH_KEY', None), + help='the key for user to login installer server', + required=False), ] |