opsmill / infrahub

Infrahub - A new approach to Infrastructure Management
https://opsmill.com/
GNU Affero General Public License v3.0
202 stars 13 forks source link

bug: infrahubctl schema load/check returns error message "invalid literal for int() with base 10: 'nodes'" when you define an attribute wihtout specifying a kind as a node extension #4009

Open wvandeun opened 3 months ago

wvandeun commented 3 months ago

Component

API Server / GraphQL, Python SDK

Infrahub version

0.16.0.dev0

Current Behavior

When you load a schema file with a node extension, that defines an attribute for an existing node without specifying a kind, it returns an error message:

Unable to load the schema:
invalid literal for int() with base 10: 'nodes'

Expected Behavior

A more precise error message is returned that explains what is wrong with the schema you are trying to load.

Steps to Reproduce

Additional Information

No response