contrib: PEP8 compliancy (#24680)

- Make PEP8 compliant
This commit is contained in:
Dag Wieers 2017-05-30 22:08:09 +02:00 committed by John R Barker
commit 758cfeb73e
4 changed files with 23 additions and 22 deletions

View file

@ -4,6 +4,7 @@ import argparse
from ipalib import api
import json
def initialize():
'''
This function initializes the FreeIPA/IPA API. This function requires
@ -16,11 +17,12 @@ def initialize():
try:
api.Backend.rpcclient.connect()
except AttributeError:
#FreeIPA < 4.0 compatibility
# FreeIPA < 4.0 compatibility
api.Backend.xmlclient.connect()
return api
def list_groups(api):
'''
This function prints a list of all host groups. This function requires
@ -28,8 +30,8 @@ def list_groups(api):
'''
inventory = {}
hostvars={}
meta={}
hostvars = {}
meta = {}
result = api.Command.hostgroup_find()['result']
@ -51,6 +53,7 @@ def list_groups(api):
return None
def parse_args():
'''
This function parses the arguments that were passed in via the command line.
@ -66,6 +69,7 @@ def parse_args():
return parser.parse_args()
def print_host(host):
'''
This function is really a stub, it could return variables to be used in
@ -79,6 +83,7 @@ def print_host(host):
return None
if __name__ == '__main__':
args = parse_args()