almahmoud 5 سال پیش
والد
کامیت
5d22395f94
2فایلهای تغییر یافته به همراه1 افزوده شده و 5 حذف شده
  1. 1 4
      cloudbridge/providers/aws/services.py
  2. 0 1
      setup.py

+ 1 - 4
cloudbridge/providers/aws/services.py

@@ -6,10 +6,6 @@ import uuid
 
 from botocore.exceptions import ClientError
 
-import cachetools
-
-import requests
-
 import tenacity
 
 import cloudbridge.base.helpers as cb_helpers
@@ -866,6 +862,7 @@ class AWSVMTypeService(BaseVMTypeService):
         next_token = vmt_list_resp.get("NextToken")
         vmt_list_names = [x.get("InstanceType")
                           for x in vmt_list_resp.get('InstanceTypeOfferings')]
+        # describe_instance_types call can get at most 100 types per request
         chunks = [vmt_list_names[x:x + 100]
                   for x in range(0, len(vmt_list_names), 100)]
         raw_types = []

+ 0 - 1
setup.py

@@ -22,7 +22,6 @@ with open(os.path.join('cloudbridge', '__init__.py')) as f:
 REQS_BASE = [
     'six>=1.11',
     'tenacity>=6.0',
-    'cachetools>=2.1.0',
     'deprecation>=2.0.7',
     'pyeventsystem<2'
 ]