i18n library is not Imported

Bug #2013427 reported by Kenta Fukaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
In Progress
Undecided
Kenta Fukaya

Bug Description

There is a bug that _ is not defined, because the import of the i82n library is forgotten.
bug code locates in these paths:
* tacker/tacker/api/common/_filters.py
* tacker/tacker/api/v1/resource.py
* tacker/tacker/api/validation/__init__.py
* tacker/tacker/api/validation/validators.py
* tacker/tacker/common/csar_utils.py
* tacker/tacker/conductor/conductor_server.py
* tacker/tacker/conf/conductor.py
* tacker/tacker/conf/vnf_package.py
* tacker/tacker/db/db_sqlalchemy/api.py
* tacker/tacker/objects/vnf_deployment_flavour.py
* tacker/tacker/objects/vnf_package_vnfd.py
* tacker/tacker/objects/vnf_software_image.py
* tacker/tacker/plugins/fenix.py
* tacker/tacker/tests/etc/samples/etsi/nfv/user_data_sample_userdata_invalid_script/UserData/lcm_user_data_invalid_script.py
* tacker/tacker/tests/unit/sol_refactored/common/test_prometheus_plugin.py
* tacker/tacker/tests/unit/sol_refactored/infra_drivers/kubernetes/fakes.py
* tacker/tacker/tests/unit/sol_refactored/objects/test_base.py
* tacker/tacker/tests/unit/vnflcm/test_controller.py
* tacker/tacker/tests/unit/vnflcm/test_vnflcm_driver.py
* tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/fakes.py
* tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py
* tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver_helm.py
* tacker/tacker/tests/unit/vnfm/mgmt_drivers/fakes.py
* tacker/tacker/tests/unit/vnfpkgm/test_controller.py
* tacker/tacker/vnflcm/vnflcm_driver.py
* tacker/tacker/vnfm/lcm_user_data/abstract_user_data.py

The following is the result of analysis with 'pylint', a static analysis tool.
---
$ pyright | ggrep "not defined"
...
   tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:276:15 - error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:312:15 - error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:375:15 - error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:413:15 - error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:449:15 - error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:486:15 - error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver_helm.py:291:15
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfm/mgmt_drivers/fakes.py:432:24
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfm/mgmt_drivers/fakes.py:434:24
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfm/mgmt_drivers/fakes.py:436:24
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfpkgm/test_controller.py:115:15
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfpkgm/test_controller.py:626:15
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfpkgm/test_controller.py:695:15
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfpkgm/test_controller.py:704:15
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfpkgm/test_controller.py:713:15
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfpkgm/test_controller.py:730:15
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfpkgm/test_controller.py:775:15
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/tests/unit/vnfpkgm/test_controller.py:913:15
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/vnflcm/vnflcm_driver.py:298:18
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/vnflcm/vnflcm_driver.py:302:18
- error: "_" is not defined (reportUndefinedVariable)
  tacker/tacker/vnfm/lcm_user_data/abstract_user_data.py:26:24
- error: "_" is not defined (reportUndefinedVariable)

Kenta Fukaya (fukayan)
description: updated
Kenta Fukaya (fukayan)
Changed in tacker:
assignee: nobody → Kenta Fukaya (fukayan)
Changed in tacker:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 10.0.0.0rc1

This issue was fixed in the openstack/tacker 10.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.