Skip to content

Commit

Permalink
Add uuid in env-creation payload (#201)
Browse files Browse the repository at this point in the history
* Add uuid in env-creation payload

* black format
  • Loading branch information
abhijeetkaurav1st authored Nov 17, 2021
1 parent 7dbb87d commit a4b8957
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions calm/dsl/builtins/models/environment_payload.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys
import uuid
from distutils.version import LooseVersion as LV

from .entity import EntityType, Entity
Expand Down Expand Up @@ -77,6 +78,7 @@ def create_environment_payload(UserEnvironment, metadata=dict()):
"spec_version": 1,
"kind": "environment",
"name": UserEnvironment.__name__,
"uuid": str(uuid.uuid4()),
}

calm_version = Version.get_version("Calm")
Expand Down

0 comments on commit a4b8957

Please sign in to comment.