Skip to content

Commit

Permalink
Refactor AWS logger to log
Browse files Browse the repository at this point in the history
  • Loading branch information
ezh committed Feb 21, 2020
1 parent 61e49bc commit 8a86664
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cloudselect/discovery/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
class AWS(DiscoveryService):
"""Class implementing discovery service plugin."""

logger = None
log = None

def __init__(self):
"""Class constructor."""
self.logger = logging.getLogger("cloudselect.discovery.AWS")
self.log = logging.getLogger("cloudselect.discovery.AWS")

def run(self):
"""Collect AWS instances."""
self.logger.debug("Discover AWS instances")
self.log.debug("Discover AWS instances")
return list(self.instances())

def instances(self):
Expand Down Expand Up @@ -128,7 +128,7 @@ def get_key(self, instance, config):
profile_name = Container.config.discovery.profile_name()
region = instance["Placement"]["AvailabilityZone"][:-1]

self.logger.debug("Search for SSH key %s", instance["KeyName"])
self.log.debug("Search for SSH key %s", instance["KeyName"])
return self.get_option(
config.get("key", {}), instance["KeyName"], profile_name, region,
)
Expand Down

0 comments on commit 8a86664

Please sign in to comment.