def add_user_to_tenant(self, username, cpm):
        backend = cpm.get_backend()
        session = backend.create_session(keystone_url=cpm.cloud.auth_url)
        keystone = backend.create_keystone_client(session)
        tenant = keystone.tenants.get(cpm.tenant_id)
        backend.ensure_user_is_tenant_admin(username, tenant, keystone)
        self.stdout.write((username, cpm.tenant_id) % '  User %s was added to tenant %s')

    # TODO: move this command to zabbix app as part of import process
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/iaas/management/commands/iaas2openstack.py/Command.add_user_to_tenant/swapped operands of `%`