Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zoe
main
Commits
9d325b0d
Commit
9d325b0d
authored
Mar 10, 2017
by
Francesco Pace
Browse files
Fix equal comparison
Signed-off-by:
Francesco Pace
<
pace.francesco.g@gmail.com
>
parent
335145a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
zoe_master/plugins/storage/crystal.py
View file @
9d325b0d
...
...
@@ -25,7 +25,7 @@ class Crystal:
def
transmit_policy
(
self
,
tenant
,
policy
):
message
=
"{}:{}"
.
format
(
tenant
,
policy
)
if
self
.
channel
[
'protocol'
]
is
'rabbitmq'
:
if
self
.
channel
[
'protocol'
]
==
'rabbitmq'
:
log
.
debug
(
"Transmitting policy to Crystal via RabbitMQ"
)
rmq
=
RabbitMQ
(
self
.
channel
[
'username'
],
self
.
channel
[
'password'
],
self
.
channel
[
'host'
])
rmq
.
open_connection
()
...
...
zoe_master/scheduler/scheduler.py
View file @
9d325b0d
...
...
@@ -112,7 +112,7 @@ class ZoeSimpleScheduler(ZoeBaseScheduler):
plugins
=
e
.
description
[
'plugins'
]
if
'storage'
in
plugins
:
for
plugin
in
plugins
[
'storage'
]:
if
plugin
[
'name'
]
is
'crystal'
:
if
plugin
[
'name'
]
==
'crystal'
:
log
.
debug
(
"Transmitting policy to Storage Plugin: Crystal"
)
Crystal
(
plugin
[
'channel'
]).
transmit_policy
(
plugin
[
'tenant'
],
plugin
[
'policy'
])
...
...
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