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
05edfc11
Commit
05edfc11
authored
Mar 10, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print exception
parent
51c46d82
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
30 deletions
+10
-30
docker-compose.yml
docker-compose.yml
+7
-7
__main__.py
planner/__main__.py
+2
-1
util.py
sure_tosca-flask-server/sure_tosca/util.py
+1
-22
No files found.
docker-compose.yml
View file @
05edfc11
...
@@ -109,13 +109,13 @@ services:
...
@@ -109,13 +109,13 @@ services:
ports
:
ports
:
-
"
8081:8081"
-
"
8081:8081"
planner
:
#
planner:
depends_on
:
#
depends_on:
-
rabbit
#
- rabbit
-
sure-tosca
#
- sure-tosca
image
:
alogo53/planner:3.0.0
#
image: alogo53/planner:3.0.0
environment
:
#
environment:
RABBITMQ_HOST
:
rabbit
#
RABBITMQ_HOST: rabbit
provisioner
:
provisioner
:
depends_on
:
depends_on
:
...
...
planner/__main__.py
View file @
05edfc11
...
@@ -157,7 +157,8 @@ if __name__ == "__main__":
...
@@ -157,7 +157,8 @@ if __name__ == "__main__":
logger
.
info
(
"Awaiting RPC requests"
)
logger
.
info
(
"Awaiting RPC requests"
)
try
:
try
:
start
(
channel
)
start
(
channel
)
except
:
except
Exception
as
e
:
e
=
sys
.
exc_info
()[
0
]
e
=
sys
.
exc_info
()[
0
]
logger
.
info
(
"Error: "
+
str
(
e
))
logger
.
info
(
"Error: "
+
str
(
e
))
print
(
e
)
exit
(
-
1
)
exit
(
-
1
)
sure_tosca-flask-server/sure_tosca/util.py
View file @
05edfc11
...
@@ -89,6 +89,7 @@ def deserialize_datetime(string):
...
@@ -89,6 +89,7 @@ def deserialize_datetime(string):
except
ImportError
:
except
ImportError
:
return
string
return
string
def
deserialize_model
(
data
,
klass
):
def
deserialize_model
(
data
,
klass
):
"""Deserializes list or dict to model.
"""Deserializes list or dict to model.
...
@@ -114,28 +115,6 @@ def deserialize_model(data, klass):
...
@@ -114,28 +115,6 @@ def deserialize_model(data, klass):
return
instance
return
instance
# def deserialize_model(data, klass):
# """Deserializes list or dict to model.
#
# :param data: dict, list.
# :type data: dict | list
# :param klass: class literal.
# :return: model object.
# """
# instance = klass()
#
# if not instance.swagger_types:
# return data
#
# for attr, attr_type in six.iteritems(instance.swagger_types):
# if data is not None \
# and instance.attribute_map[attr] in data \
# and isinstance(data, (list, dict)):
# value = data[instance.attribute_map[attr]]
# setattr(instance, attr, _deserialize(value, attr_type))
#
# return instance
def
_deserialize_list
(
data
,
boxed_type
):
def
_deserialize_list
(
data
,
boxed_type
):
"""Deserializes a list and its elements.
"""Deserializes a list and its elements.
...
...
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