freezelist: Make it PEP8 compliant
This commit is contained in:
parent
ba2da3ed82
commit
efdf0072aa
1 changed files with 8 additions and 14 deletions
|
@ -8,11 +8,10 @@ import sys
|
|||
from optparse import OptionParser
|
||||
|
||||
|
||||
|
||||
parser = OptionParser(version = "1.0")
|
||||
parser = OptionParser(version="1.0")
|
||||
parser.add_option('-i', dest='inventory', default=None,
|
||||
help="Path to inventory file/dir")
|
||||
opts,args = parser.parse_args(sys.argv[1:])
|
||||
help="Path to inventory file/dir")
|
||||
opts, args = parser.parse_args(sys.argv[1:])
|
||||
|
||||
if opts.inventory:
|
||||
inv = ansible.inventory.Inventory(host_list=opts.inventory)
|
||||
|
@ -41,8 +40,3 @@ for host in sorted(frozen):
|
|||
print 'do not freeze:'
|
||||
for host in sorted(unfrozen):
|
||||
print 'NF: ' + host
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue