Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cyber-sandbox-creator
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-CSC
cyber-sandbox-creator
Commits
5109a6a8
Commit
5109a6a8
authored
4 years ago
by
Attila Farkas
Browse files
Options
Downloads
Patches
Plain Diff
Handle empty flavor attribute
parent
0c6f420a
No related branches found
No related tags found
1 merge request
!24
Handle empty flavor attribute
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/preprocessing.py
+1
-1
1 addition, 1 deletion
modules/preprocessing.py
with
1 addition
and
1 deletion
modules/preprocessing.py
+
1
−
1
View file @
5109a6a8
...
...
@@ -53,7 +53,7 @@ def _add_extra_arguments(definitions, flags):
def
_add_flavors
(
definitions
):
"""
Change flavor attribute to cpus and memory.
"""
for
host
in
definitions
[
"
hosts
"
]:
if
"
flavor
"
in
host
:
if
"
flavor
"
in
host
and
host
[
"
flavor
"
]
:
if
host
[
"
flavor
"
]
not
in
FLAVORS
:
print
(
"
Error: Not supported flavor:
"
+
host
[
"
flavor
"
])
raise
AttributeError
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment