From 14cdc6d4f913b813f63f96c62a280847f179aa24 Mon Sep 17 00:00:00 2001 From: ssamson-tis Date: Tue, 30 Jun 2015 11:18:11 +0200 Subject: [PATCH] Ignore proxies for export xva --- libtisbackup/backup_xva.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libtisbackup/backup_xva.py b/libtisbackup/backup_xva.py index cf5a2b4..4e0830b 100755 --- a/libtisbackup/backup_xva.py +++ b/libtisbackup/backup_xva.py @@ -43,12 +43,17 @@ class backup_xva(backup_generic): type = 'xen-xva' required_params = backup_generic.required_params + ['xcphost','password_file','server_name'] - optional_params = backup_generic.optional_params + ['enable_https', 'halt_vm', 'verify_export', 'reuse_snapshot'] + optional_params = backup_generic.optional_params + ['enable_https', 'halt_vm', 'verify_export', 'reuse_snapshot', 'ignore_proxies'] enable_https = "no" halt_vm = "no" verify_export = "no" reuse_snapshot = "no" + ignore_proxies = "yes" + + if str2bool(ignore_proxies) == True: + os.environ['http_proxy']="" + os.environ['https_proxy']="" def verify_export_xva(self,filename): self.logger.debug("[%s] Verify xva export integrity",self.server_name)