Bug 2215 fixed
[osm/MON.git] / osm_mon / collector / vnf_collectors / vmware.py
index 93592b7..7284298 100644 (file)
@@ -23,7 +23,7 @@
 
 import logging
 import traceback
-from xml.etree import ElementTree as XmlElementTree
+from lxml import etree as XmlElementTree
 
 import requests
 from pyvcloud.vcd.client import BasicLoginCredentials
@@ -40,7 +40,7 @@ API_VERSION = "27.0"
 
 
 class VMwareCollector(BaseVimCollector):
-    def __init__(self, config: Config, vim_account_id: str):
+    def __init__(self, config: Config, vim_account_id: str, vim_session: object):
         super().__init__(config, vim_account_id)
         self.common_db = CommonDbClient(config)
         vim_account = self.get_vim_account(vim_account_id)
@@ -163,7 +163,7 @@ class VMwareCollector(BaseVimCollector):
                     "x-vcloud-authorization"
                 ],
             }
-            response = requests.get(get_vapp_restcall, headers=headers, verify=False)
+            response = requests.get(get_vapp_restcall, headers=headers)
 
             if response.status_code != 200:
                 log.error(