def generate_eucalyptus(image, builder, installProfile, api, login):
    if not builder in "account":
        printer.out("Account not found in builder", printer.ERROR)
        return None, None, None

    accounts = api.Users(login).Accounts.Getall()
    if accounts is None or not accounts.get_credAccount():
        printer.out("No accounts available", printer.ERROR)
        return None, None, None
    else:
        for account in accounts.get_credAccount():
            if account.name == builder["account"]["name"]:
                image.credAccount = account
                break

    if "disableRootLogin" in builder:
        myrootUser = osUser()
        if builder["disableRootLogin"] == "true":
            val = True
        elif builder["disableRootLogin"] == "false":
            val = False
        else:
            printer.out("Unknown value for 'disableRootLogin' in builder [ami]", printer.ERROR)
            return None, None, None
        myrootUser.disablePasswordLogin = val
        installProfile.rootUser = myrootUser

    image.compress = False
    return image, installProfile
dataset/ETHPy150Open usharesoft/hammr/src/hammr/utils/generate_utils.py/generate_eucalyptus/swapped operands of `in`