Commit ee55358f authored by kesnar's avatar kesnar
Browse files

fix: controller_packet_metadata should not throw exception

parent 8a0dc4fd
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -455,9 +455,8 @@ class P4Driver(_Driver):
                    #Not Supported for P4 devices
                    pass
                elif KEY_CTL_PKT_METADATA == resource_key:
                    msg = f"{resource_key.capitalize()} is not a " \
                          f"retrievable resource"
                    raise Exception(msg)
                    #To-Do: Check what we should do with controller_packet_metadata
                    LOGGER.warning(f"{resource_key.capitalize()} is not a not a retreivable source")
                else:
                    msg = f"GetConfig failed due to invalid " \
                          f"resource key: {resource_key}"