Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
848b6aef
Commit
848b6aef
authored
Jan 26, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change load
parent
838daa90
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
policies.yaml
TOSCA/types/policies.yaml
+2
-2
workspace.xml
drip-planner/.idea/workspace.xml
+0
-1
tosca_template_service.py
...flask-server/sure_tosca/service/tosca_template_service.py
+2
-1
No files found.
TOSCA/types/policies.yaml
View file @
848b6aef
...
...
@@ -21,11 +21,11 @@ policy_types:
tosca.policies.ARTICONF.Performance.CPU
:
derived_from
:
tosca.policies.ARTICONF.Performance
description
:
CPU load constraint as
%
description
:
CPU load constraint as
percentage
tosca.policies.ARTICONF.Performance.Mem
:
derived_from
:
tosca.policies.Performance
description
:
Memory load constraint as
%
description
:
Memory load constraint as
percentage
tosca.policies.ARTICONF.Performance.Disk
:
derived_from
:
tosca.policies.Performance
...
...
drip-planner/.idea/workspace.xml
View file @
848b6aef
...
...
@@ -3,7 +3,6 @@
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"e478ccae-5352-4e8e-9efb-3f5cda44e877"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../sure_tosca-flask-server/sure_tosca/test/test_default_controller.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../sure_tosca-flask-server/sure_tosca/test/test_default_controller.py"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
sure_tosca-flask-server/sure_tosca/service/tosca_template_service.py
View file @
848b6aef
...
...
@@ -104,7 +104,8 @@ def save(file):
logger
.
info
(
"Got request for tosca template"
)
purge_all_tables
()
dictionary
=
yaml
.
safe_load
(
file
.
stream
)
# dictionary = yaml.safe_load(file.stream)
dictionary
=
yaml
.
load
(
file
.
stream
)
logger
.
info
(
"tosca template:
\n
"
+
str
(
yaml
.
dump
(
dictionary
)))
# print(yaml.dump(dictionary))
tosca_template
=
ToscaTemplate
(
yaml_dict_tpl
=
copy
.
deepcopy
(
dictionary
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment