Add '--by-service' flag to 'cell_v2_discover_hosts' cmd call
Related: PROD-29403
Change-Id: I76a29fc02430cbad906c692dbbce295af5be04a9
diff --git a/nova/controller.sls b/nova/controller.sls
index c7ce2ba..94ad162 100644
--- a/nova/controller.sls
+++ b/nova/controller.sls
@@ -432,7 +432,7 @@
nova_controller_discover_hosts:
cmd.run:
- - name: nova-manage cell_v2 discover_hosts --verbose
+ - name: nova-manage cell_v2 discover_hosts --verbose --by-service
{%- if grains.get('noservices') %}
- onlyif: /bin/false
{%- endif %}