From e38eb2589af447d6f4d02294ad47f143e05280a9 Mon Sep 17 00:00:00 2001 From: Romain Dartigues Date: Sun, 19 Apr 2015 18:18:52 +0200 Subject: [PATCH] Undefined names found by pyflakes --- plugins/inventory/consul_io.py | 1 + plugins/inventory/softlayer.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/inventory/consul_io.py b/plugins/inventory/consul_io.py index e0ff3fbbeb..7bbe63b13e 100755 --- a/plugins/inventory/consul_io.py +++ b/plugins/inventory/consul_io.py @@ -125,6 +125,7 @@ import os import re import argparse from time import time +import sys import ConfigParser import urllib, urllib2, base64 diff --git a/plugins/inventory/softlayer.py b/plugins/inventory/softlayer.py index ef8a2f6a74..d2a15b1218 100755 --- a/plugins/inventory/softlayer.py +++ b/plugins/inventory/softlayer.py @@ -55,7 +55,7 @@ class SoftLayerInventory(object): self.get_all_servers() print self.json_format_dict(self.inventory, True) elif self.args.host: - self.get_virtual_servers(client) + self.get_virtual_servers() print self.json_format_dict(self.inventory["_meta"]["hostvars"][self.args.host], True) def to_safe(self, word):