def cloudstack(account):
    myCredAccount = CloudCom()
    # doing field verification
    if not "publicKey" in account:
        printer.out("publicKey in cloudstack account not found", printer.ERROR)
        return
    if not "secretKey" in account:
        printer.out("secretKey in cloudstack account not found", printer.ERROR)
        return
    if not account in "endpoint":
        printer.out("endpoint for cloudstack account not found", printer.ERROR)
        return
    if not "name" in account:
        printer.out("name for cloudstack account not found", printer.ERROR)
        return

    myCredAccount.publicAPIKey = account["publicKey"]
    myCredAccount.secretAPIKey = account["secretKey"]
    myCredAccount.serverUrl = account["endpoint"]
    myCredAccount.name = account["name"]
    return myCredAccount
dataset/ETHPy150Open usharesoft/hammr/src/hammr/utils/account_utils.py/cloudstack/swapped operands of `in`