Apply configuration from cloud metadata (JSON).
It turns metadata from one or more JSON files like this:
{"keystone": {"database": {"host": "127.0.0.1", "user": "keystone", "password": "foobar"}}}
import eventlet | |
eventlet.monkey_patch(os=False) | |
import logging | |
from oslo.config import cfg | |
from oslo import messaging | |
logging.basicConfig(level=logging.DEBUG) |
import eventlet | |
eventlet.monkey_patch(os=False) | |
import logging | |
from oslo import messaging | |
logging.basicConfig(level=logging.DEBUG) |
There can be multiple form of actions, but two have been implemented so far:
commit: de2218e | |
merge-base: ce71b66 | |
onto: d34a04d | |
git diff ce71b66..d34a04d | |
CONFLICT (content): Merge conflict in requirements.txt | |
- easy | |
CONFLICT (content): Merge conflict in nova/utils.py |
$> python ./test-notification-server.py | |
$> python test-notification.py --config-file ./test.conf --debug | |
$> git reset --hard 5315399 | |
$> python test-notification-old.py --config-file ./test.conf --debug |
class Kombu(object): | |
def __init__(self): | |
self.params = { | |
'hostname': 'localhost', | |
'port': 5672, | |
'virtual_host': '/', |