Browse Source

Plugin Decoding

fix decoding in the creation plugin

Change-Id: I77f2cf85ddd40b7564999ab5d1d3720767651e9d
Fabio Verboso 11 months ago
parent
commit
737883be4b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      iotronic/conductor/endpoints.py

+ 1
- 1
iotronic/conductor/endpoints.py View File

@@ -205,7 +205,7 @@ class ConductorEndpoint(object):
205 205
         new_plugin = serializer.deserialize_entity(ctx, plugin_obj)
206 206
         LOG.debug('Creating plugin %s',
207 207
                   new_plugin.name)
208
-        new_plugin.code = cpickle.dumps(new_plugin.code, 0)
208
+        new_plugin.code = cpickle.dumps(new_plugin.code, 0).decode()
209 209
         new_plugin.create()
210 210
         return serializer.serialize_entity(ctx, new_plugin)
211 211
 

Loading…
Cancel
Save