Use CLI input as react script name

Like in audit scripts, it doesn't make sense to keep a name field
in react.json anymore. Use the name passed in CLI instead.

Change-Id: Ic6d25505b62b640a7ade2990a927a9ea18bd90eb
This commit is contained in:
Pranesh Pandurangan 2014-06-12 15:15:36 -07:00
parent dcf82d6490
commit 8967185608
2 changed files with 1 additions and 1 deletions

View File

@ -250,6 +250,7 @@ class Engine(object):
self.known_queues.append(message_queue)
self._known_routing_keys.add(data['routing_key'])
kwargs = data
kwargs['name'] = script
kwargs['conf'] = script_args['cfg']
kwargs['exchange'] = self.entropy_exchange
kwargs['message_queue'] = message_queue

View File

@ -1,5 +1,4 @@
{
"name" : "react",
"script": "/home/praneshp/code/entropy/entropy/examples/repair/react",
"hostname" : "localhost",
"username" : "praneshp",