Browse Source

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
changes/81/99781/2
Pranesh Pandurangan 5 years ago
parent
commit
8967185608
2 changed files with 1 additions and 1 deletions
  1. 1
    0
      entropy/engine.py
  2. 0
    1
      entropy/examples/repair/react.json

+ 1
- 0
entropy/engine.py View File

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

+ 0
- 1
entropy/examples/repair/react.json View File

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

Loading…
Cancel
Save