Skip to content

Commit

Permalink
trailing whitespaces - pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannis100 committed Aug 19, 2019
1 parent 29bd89d commit 6fff058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/plugins/inventory/netbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def extract_config_context(self, host):
return device_lookup["config_context"]
except Exception:
return

def extract_interface_ip(self, interface_id):
try:
url = self.api_endpoint + "/api/ipam/ip-addresses/?limit=0&interface_id=" + str(interface_id)
Expand Down Expand Up @@ -323,7 +323,7 @@ def extract_interfaces(self, host):

def extract_manufacturer(self, host):
try:
return ([self.manufacturers_slug_lookup[host["device_type"]["manufacturer"]["id"]]]
return ([self.manufacturers_slug_lookup[host["device_type"]["manufacturer"]["id"]]]
if self.use_slugs else [self.manufacturers_lookup[host["device_type"]["manufacturer"]["id"]]])
except Exception:
return
Expand Down

0 comments on commit 6fff058

Please sign in to comment.