Deleted the old (unused) aws collector

This commit is contained in:
Shay Nehmad 2020-01-20 11:57:19 +02:00
parent 2a09d54ed1
commit ed138de8c4
1 changed files with 0 additions and 29 deletions

View File

@ -1,29 +0,0 @@
import logging
from common.cloud.aws.aws_instance import AwsInstance
__author__ = 'itay.mizeretz'
LOG = logging.getLogger(__name__)
class AwsCollector(object):
"""
Extract info from AWS machines
"""
@staticmethod
def get_aws_info():
LOG.info("Collecting AWS info")
aws = AwsInstance()
info = {}
if aws.is_instance():
LOG.info("Machine is an AWS instance")
info = \
{
'instance_id': aws.get_instance_id()
}
else:
LOG.info("Machine is NOT an AWS instance")
return info