def azure(account):
    myCredAccount = CredAccountAzure()
    # doing field verification
    if not "rsaPrivateKey" in account:
        printer.out("rsaPrivateKey in azure account not found", printer.ERROR)
        return
    if not "certKey" in account:
        printer.out("certKey in azure account not found", printer.ERROR)
        return
    if not "subscriptionId" in account:
        printer.out("subscriptionId for azure account not found", printer.ERROR)
        return
    if not account in "name":
        printer.out("name for azure account not found", printer.ERROR)
        return

    myCredAccount.accountNumber = account["subscriptionId"]
    myCredAccount.name = account["name"]

    myCertificates = certificates()
    myCredAccount.certificates = myCertificates

    try:
        myCertificate = certificate()
        with open(account["rsaPrivateKey"], "r") as myfile:
            myCertificate.certStr = myfile.read()
        myCertificate.type_ = "azureRSAKey"
        myCertificate.name = ntpath.basename(account["rsaPrivateKey"])
        myCertificates.add_certificate(myCertificate)
        myCertificate = certificate()
        with open(account["certKey"], "r") as myfile:
            myCertificate.certStr = myfile.read()
        myCertificate.type_ = "azureCertKey"
        myCertificate.name = ntpath.basename(account["certKey"])
        myCertificates.add_certificate(myCertificate)


    except IOError as e:
        printer.out("File error: " + str(e), printer.ERROR)
        return

    return myCredAccount
dataset/ETHPy150Open usharesoft/hammr/src/hammr/utils/account_utils.py/azure/swapped operands of `in`