def connect_to_openstack(self, openstack_params, flavor_name, image_name,
                             external_net):
        LOG.debug('Connecting to OpenStack')

        self.openstack_client = openstack.OpenStackClient(openstack_params)

        self.flavor_name = flavor_name
        self.image_name = image_name
        self.external_net = (external_net and
                             neutron.choose_external_net(
                                 self.openstack_client.neutron))
        self.stack_name = 'shaker_%s' % utils.random_string()
dataset/ETHPy150Open openstack/shaker/shaker/engine/deploy.py/Deployment.connect_to_openstack/operator `or` -> `and`