Skip to content

Commit 1063208

Browse files
Merge pull request #10 from devdattakulkarni/ObjectStores
Removed reference to common_functions module from s3_handler
2 parents 69a7f54 + 7ca7327 commit 1063208

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

ObjectStores/s3_handler.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import sys
66
import traceback
77

8-
from common import common_functions
9-
108
LOG_FILE_NAME = 'output.log'
119

1210
REGION = 'us-west-2'
@@ -58,8 +56,8 @@ def _get(self, bucket_name):
5856
try:
5957
response = self.client.head_bucket(Bucket=bucket_name)
6058
except Exception as e:
61-
print(e)
62-
traceback.print_exc(file=sys.stdout)
59+
# print(e)
60+
# traceback.print_exc(file=sys.stdout)
6361

6462
response_code = e.response['Error']['Code']
6563
if response_code == '404':
@@ -209,13 +207,6 @@ def dispatch(self, command_string):
209207

210208
def main():
211209

212-
available_cloud_setup = common_functions.get_cloud_setup()
213-
if 'aws' not in available_cloud_setup:
214-
print("Cloud setup not found for aws.")
215-
print("Doing the setup now..")
216-
os.system("pip install awscli")
217-
os.system("aws configure")
218-
219210
s3_handler = S3Handler()
220211

221212
while True:

0 commit comments

Comments
 (0)