Browse Source

When creating an engine, add an enabled field

We use this field when disabling an engine. Stay clear of possible
KeyErrors by adding this field when registering an engine.

Change-Id: Iacca4f99be018b5147b6a00f82e7c772ec88a8f3
Pranesh Pandurangan 4 years ago
parent
commit
f3c51ab67d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      entropy/__main__.py

+ 2
- 1
entropy/__main__.py View File

@@ -109,7 +109,8 @@ def start_engine(args):
109 109
             args.name: {
110 110
                 'cfg': os.path.join(os.getcwd(), args.engine_cfg),
111 111
                 'pid': os.getpid(),
112
-                'backend': cfg_data['backend']
112
+                'backend': cfg_data['backend'],
113
+                'enabled': True
113 114
             }
114 115
         }
115 116
         utils.write_yaml(cfg, engine_cfg)

Loading…
Cancel
Save