Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos.core
Commits
e5f5a910
Commit
e5f5a910
authored
12 years ago
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support status enumeration.
parent
98d6da7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
master/bt5/vifib_slapos_rest_api_v1_test/bt/revision
master/bt5/vifib_slapos_rest_api_v1_test/bt/revision
+1
-1
master/product/Vifib/Tool/VifibRestApiV1Tool.py
master/product/Vifib/Tool/VifibRestApiV1Tool.py
+3
-0
No files found.
master/bt5/vifib_slapos_rest_api_v1_test/bt/revision
View file @
e5f5a910
60
\ No newline at end of file
61
\ No newline at end of file
This diff is collapsed.
Click to expand it.
master/product/Vifib/Tool/VifibRestApiV1Tool.py
View file @
e5f5a910
...
...
@@ -461,6 +461,9 @@ class ComputerPublisher(GenericPublisher):
error_list
.
append
(
'Missing key "%s".'
%
k
)
elif
not
isinstance
(
dict_
[
k
],
unicode
):
error_list
.
append
(
'Key "%s" is not unicode.'
%
k
)
elif
k
==
'status'
and
dict_
[
k
]
not
in
[
'installed'
,
'uninstalled'
,
'error'
]:
error_list
.
append
(
'Status "%s" is incorrect.'
%
dict_
[
k
])
if
len
(
error_list
)
>
0
:
error_dict
[
'%s_%s'
%
(
prefix
,
no
)]
=
error_list
no
+=
1
...
...
This diff is collapsed.
Click to expand it.
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