fix: avoid TypeError: 'NoneType' object is not subscriptable on missing source...
fix: avoid TypeError: 'NoneType' object is not subscriptable on missing source keypair, provide more insight how to fix it
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 354, 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 168, in main
i_destination_server_keypair = olib.get_or_create_dst_server_keypair(args, source_keypairs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/freznicek/prjs/muni/sources/gitlab.ics.muni.cz/g1-g2-ostack-cloud-migration.git/ci/olib.py", line 249, in get_or_create_dst_server_keypair
f"F.7 Source OpenStack server keypair found ({source_server_keypair['name']})." \
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
Edited by František Řezníček