create an python object from json string

when calling the post message for event

Depeneds-On: I6f9d7de1c34362090f56ec03c8fe03d5d06fa1fb
Change-Id: I3322292e7d69325ba102f1a8e74ab0ce6c1266ed
This commit is contained in:
Eyal 2017-03-13 17:35:12 +02:00
parent 458eea10c5
commit c413cf2de1
1 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import json
from cliff import command
from datetime import datetime
@ -58,4 +60,4 @@ class EventPost(command.Command):
self.app.client.event.post(event_time=event_time,
event_type=event_type,
details=details)
details=json.loads(details))