X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=doctor_tests%2Finspector%2Fsample.py;h=54328727f6d29425d6bd8986f2fb2c9910af9f29;hb=1bec48cd10057821828ffca3f5ecf31b853c66f7;hp=fcdb48fed9adb21a86eed7e9a8b13328a83907d1;hpb=9f91aba7ef33d7ad88c3bd004fdf7c5fef65f151;p=doctor.git diff --git a/doctor_tests/inspector/sample.py b/doctor_tests/inspector/sample.py index fcdb48fe..54328727 100644 --- a/doctor_tests/inspector/sample.py +++ b/doctor_tests/inspector/sample.py @@ -35,7 +35,7 @@ class SampleInspector(BaseInspector): auth = get_identity_auth(project=self.conf.doctor_project) session = get_session(auth=auth) - if self.conf.update_neutron_port_dp_status: + if self.conf.inspector.update_neutron_port_dp_status: self.neutron = neutron_client(session) self.servers = collections.defaultdict(list) @@ -95,11 +95,11 @@ class SampleInspector(BaseInspector): self.hostnames.append(hostname) thr1 = self._disable_compute_host(hostname) thr2 = self._vms_reset_state('error', hostname) - if self.conf.update_neutron_port_dp_status: + if self.conf.inspector.update_neutron_port_dp_status: thr3 = self._set_ports_data_plane_status('DOWN', hostname) thr1.join() thr2.join() - if self.conf.update_neutron_port_dp_status: + if self.conf.inspector.update_neutron_port_dp_status: thr3.join() @utils.run_async