Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle reserved names of entities internally while decompiling blueprint. #121

Closed
abhijeetkaurav1st opened this issue Sep 16, 2020 · 1 comment

Comments

@abhijeetkaurav1st
Copy link
Collaborator

If any entity found with reserved name (Service, Package etc.), add some flag to then entity name. As reserved keyword should not be used in blueprint file.

Right now it raises error:

"/root/.local/lib/python3.7/site-packages/calm/dsl/builtins/models/entity.py", line 183, in __new__
    raise TypeError("{} is a reserved name for this entity".format(name))
TypeError: Package is a reserved name for this entity

Ex:

class Package(Package):
    pass


Package name should not be allowed in above case.

@abhijeetkaurav1st
Copy link
Collaborator Author

Take prefix from user and append to all entities. Ex: calm decompile bp --prefix Foo.

abhijeetkaurav1st added a commit that referenced this issue Mar 21, 2022
#113)" (#121)

This reverts commit 4a5025538d9b1150b525fcfb39d27b9659d5b139.

(cherry picked from commit 00b31f6eaeee2374185d5ab6f17d6e164fff0894)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant