From 66a441494534569569a9963fcf9dcfb17cf8894b Mon Sep 17 00:00:00 2001 From: Nicola Peditto Date: Wed, 19 Apr 2017 10:20:43 +0200 Subject: [PATCH] Updated main and Board class. Change-Id: I96162d76ea0a6539257fed2f8a98e40336b2b9aa --- README.rst | 4 ---- etc/init.d/lightning-rod | 2 +- iotronic_lightningrod/Board.py | 5 ++++- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 99b84ab..7a5e710 100644 --- a/README.rst +++ b/README.rst @@ -5,10 +5,6 @@ Iotronic Lightning-rod Agent Python implementation of Lightning-rod Agent, the Stack4Things (http://stack4things.unime.it/) board-side probe. -Please fill here a long description which must be at least 3 lines wrapped on -80 cols, so that distribution package maintainers can use it in their packages. -Note that this is a hard requirement. - * Free software: Apache license * Documentation: http://docs.openstack.org/developer/iotronic_lightningrod * Source: https://github.com/openstack/iotronic-lightning-rod diff --git a/etc/init.d/lightning-rod b/etc/init.d/lightning-rod index 57a384e..f73214d 100644 --- a/etc/init.d/lightning-rod +++ b/etc/init.d/lightning-rod @@ -51,7 +51,7 @@ status(){ fi } -file:///home/webwolf/Scrivania/Stack4Things/test_ipk/s4t-lr + case "$1" in start) start diff --git a/iotronic_lightningrod/Board.py b/iotronic_lightningrod/Board.py index 6972b53..ac2e878 100644 --- a/iotronic_lightningrod/Board.py +++ b/iotronic_lightningrod/Board.py @@ -102,7 +102,9 @@ class Board(object): self.getWampAgent(self.iotronic_config) except Exception as err: - LOG.warning("settings.json file exception: " + str(err)) + if str(err) != 'uuid': + LOG.warning("settings.json file exception: " + str(err)) + # STATUS REGISTERED try: self.code = board_config['code'] @@ -118,6 +120,7 @@ class Board(object): ''' try: + self.wamp_config = config['iotronic']['wamp']['main-agent'] LOG.info('WAMP Agent settings:')