Undefined names found by pyflakes

pull/10777/head
Romain Dartigues 10 years ago
parent f4172fb9da
commit e38eb2589a

@ -125,6 +125,7 @@ import os
import re import re
import argparse import argparse
from time import time from time import time
import sys
import ConfigParser import ConfigParser
import urllib, urllib2, base64 import urllib, urllib2, base64

@ -55,7 +55,7 @@ class SoftLayerInventory(object):
self.get_all_servers() self.get_all_servers()
print self.json_format_dict(self.inventory, True) print self.json_format_dict(self.inventory, True)
elif self.args.host: 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) print self.json_format_dict(self.inventory["_meta"]["hostvars"][self.args.host], True)
def to_safe(self, word): def to_safe(self, word):

Loading…
Cancel
Save