+ elif channel == 'ResourceTypeChanged':
+ datastr = m['data']
+ data = json.loads(datastr)
+ logger.info('ResourceTypeChanged with cmd:{}'.format(data))
+ ref = apibase + inventory_api_version + '/resourceTypes/' + \
+ data['id']
+ cmd = imscmd.PubMessage2SMO(data=Message2SMO(
+ id=data['id'], ref=ref,
+ eventtype=data['notificationEventType'],
+ updatetime=data['updatetime']),
+ type='ResourceType')
+ bus.handle(cmd)
+ elif channel == 'ResourcePoolChanged':
+ datastr = m['data']
+ data = json.loads(datastr)
+ logger.info('ResourcePoolChanged with cmd:{}'.format(data))
+ ref = apibase + inventory_api_version + '/resourcePools/' + \
+ data['id']
+ cmd = imscmd.PubMessage2SMO(data=Message2SMO(
+ id=data['id'], ref=ref,
+ eventtype=data['notificationEventType'],
+ updatetime=data['updatetime']),
+ type='ResourcePool')
+ bus.handle(cmd)
+ elif channel == 'DmsChanged':