def getNewConfig(fn):
    # Backup the appliance config just in case!
    args = [ldapsearch] + ldap_creds + \
           ['-b',
           'o=gluu',
           'objectclass=*']
    output = getOutput(args)
    f = open(fn, 'w')
    f.write(output)
    f.close()
    logIt(fn % "Wrote new ldif to %s")
dataset/ETHPy150Open GluuFederation/community-edition-setup/static/scripts/import23.py/getNewConfig/swapped operands of `%`