dimanche 17 juillet 2022

Ruby - undefined method `deep_transform_keys' for Array

When I'm trying to update the Network security group rules for Azure, I get the following error.

undefined method 'deep_transform_keys' for Array

Any idea why and how it can be resolved?

network_sg = Azure::Armrest::Network::NetworkSecurityGroupService.new(conf)  
network_sg.update('sg_testing_temp_1', 'cloud-shell-storage', network_sg_properties)


[----] E, [2022-07-17T16:36:12.489747 #32747:2ad3b3e0be04] ERROR -- automation: Q-task_id([r988_miq_provision_2589]) <AEMethod azure_sg_provision> The following error occurred during method evaluation:
[----] E, [2022-07-17T16:36:12.501593 #32747:2ad3b3e0be04] ERROR -- automation: Q-task_id([r988_miq_provision_2589]) <AEMethod azure_sg_provision>   NoMethodError: undefined method `deep_transform_keys' for #<Array:0x0000562e6b8e9898>
[----] E, [2022-07-17T16:36:12.503179 #32747:2ad3b3e0be04] ERROR -- automation: Q-task_id([r988_miq_provision_2589]) <AEMethod azure_sg_provision>   /opt/manageiq/manageiq-gemset/gems/azure-armrest-0.14.0/lib/azure/armrest/resource_group_based_service.rb:199:in `transform_create_options'
[----] E, [2022-07-17T16:36:12.507115 #32747:2ad3b3e0601c] ERROR -- automation: Method STDERR: from /ManageIQ_Custom/Cloud/VM/Provisioning/StateMachines/Methods/Azure_SG_Provision:268:in `<main>'
[----] I, [2022-07-17T16:36:12.534925 #32747:2ad3a008b968]  INFO -- automation: Q-task_id([r988_miq_provision_2589]) <AEMethod [/ManageIQ_Custom/Cloud/VM/Provisioning/StateMachines/Methods/Azure_SG_Provision]> Ending

Aucun commentaire:

Enregistrer un commentaire