Ignore proxies for export xva

This commit is contained in:
ssamson-tis 2015-06-30 11:18:11 +02:00
parent ec1e50058b
commit 14cdc6d4f9

View File

@ -43,12 +43,17 @@ class backup_xva(backup_generic):
type = 'xen-xva' type = 'xen-xva'
required_params = backup_generic.required_params + ['xcphost','password_file','server_name'] 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" enable_https = "no"
halt_vm = "no" halt_vm = "no"
verify_export = "no" verify_export = "no"
reuse_snapshot = "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): def verify_export_xva(self,filename):
self.logger.debug("[%s] Verify xva export integrity",self.server_name) self.logger.debug("[%s] Verify xva export integrity",self.server_name)