

def _get_options(self, event):
    opt = int(event.get('rax_options', 0))
    flags = [bool((self & (2 ** i))) for i in range(8)]
    os = 'LINUX'
    app = None
    if flags[0]:
        os = 'RHEL'
    if flags[2]:
        os = 'WINDOWS'
    if flags[6]:
        os = 'VYATTA'
    if flags[3]:
        app = 'MSSQL'
    if flags[5]:
        app = 'MSSQL_WEB'
    if (app is None):
        return ('osLicenseType="%s"' % os)
    else:
        return ('osLicenseType="%s" applicationLicense="%s"' % (os, app))

dataset/ETHPy150Open openstack/stacktach-winchester/winchester/pipeline_handler.py AtomPubHandler._get_options/VarMisuse@32/40 `opt`->`self`