Skip to content

fix: correct sg name prefix argument name

František Řezníček requested to merge freznicek-correct-sg-prefix-args into master

This MR introduces:

  • correct sg name prefix argument name to avoid following traceback
2024-06-11 20:16:21,025 project-migrator INFO E.31 Destination cloud FIP network detected
Traceback (most recent call last):
  File "/home/freznicek/prjs/muni/sources/gitlab.ics.muni.cz/g1-g2-ostack-cloud-migration.git/ci/./project-migrator.py", line 389, in <module>
    sys.exit(main(ARGS))
             ^^^^^^^^^^
  File "/home/freznicek/prjs/muni/sources/gitlab.ics.muni.cz/g1-g2-ostack-cloud-migration.git/ci/./project-migrator.py", line 140, in main
    olib.duplicate_ostack_project_security_groups(args,
  File "/home/freznicek/prjs/muni/sources/gitlab.ics.muni.cz/g1-g2-ostack-cloud-migration.git/ci/olib.py", line 412, in duplicate_ostack_project_security_groups
    if get_dst_secgroup_name(args, i_src_security_group.name) == j_dst_security_group.name and \
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/freznicek/prjs/muni/sources/gitlab.ics.muni.cz/g1-g2-ostack-cloud-migration.git/ci/lib.py", line 93, in get_dst_secgroup_name
    return f"{args.destination_secgroup_name_prefix}{name}"
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'destination_secgroup_name_prefix'. Did you mean: 'destination_entity_name_prefix'?

Merge request reports