vmware / vmware-aria-operations-integration-sdk

The VMware Aria Operations Integration SDK contains libraries, tools, and documentation for developing Management Packs for VMware Aria Operations. It is intended to make creating a Management Pack simple and fast, while allowing developers to use the language of their choice.
https://vmware.github.io/vmware-aria-operations-integration-sdk/
Apache License 2.0
17 stars 6 forks source link

Tag validation #200

Closed quirogas closed 1 year ago

quirogas commented 1 year ago

Is your feature request related to a problem? Please describe.

When a user enters an invalid tag format during mp-build setup, mp-build will try to use the tag, which will cause it to fail. The tool correctly handles the error; however, the message displayed comes from docker and is unclear.

17:00:19,405 vmware_aria_operations_integration_sdk.mp_build ERROR Unable to build pak file
17:00:19,407 vmware_aria_operations_integration_sdk.mp_build ERROR ERROR: Unable to build Docker file at /Users/user_name/management-pack:
 {'message': 'invalid reference format'}

Describe the solution you'd like

If we could validate that the tag has a valid format, we could prevent the user from running into this case.

Describe alternatives you've considered

No response

Additional context

No response

kjrokos commented 1 year ago

See also #114