Browse Source

[nova] Do not throw out stdout of nova-manage --version

"nova-manage --version" used to print to stderr, but
at least since Rocky it prints to stdout

Change-Id: I48e46612e17556babc35263355c6749c70fd8711
Jiří Suchomel 1 month ago
parent
commit
f33c07b8fb
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      nova/templates/bin/_cell-setup.sh.tpl
  2. 1
    1
      nova/templates/bin/_db-sync.sh.tpl

+ 1
- 1
nova/templates/bin/_cell-setup.sh.tpl View File

@@ -18,7 +18,7 @@ limitations under the License.
18 18
 
19 19
 set -ex
20 20
 
21
-NOVA_VERSION=$(nova-manage --version 2>&1 > /dev/null)
21
+NOVA_VERSION=$(nova-manage --version 2>&1)
22 22
 
23 23
 # NOTE(portdirect): check if nova fully supports cells v2, and manage
24 24
 # accordingly. Support was complete in ocata (V14.x.x).

+ 1
- 1
nova/templates/bin/_db-sync.sh.tpl View File

@@ -18,7 +18,7 @@ limitations under the License.
18 18
 
19 19
 set -ex
20 20
 
21
-NOVA_VERSION=$(nova-manage --version 2>&1 > /dev/null)
21
+NOVA_VERSION=$(nova-manage --version 2>&1)
22 22
 
23 23
 function manage_cells () {
24 24
   # NOTE(portdirect): check if nova fully supports cells v2, and manage

Loading…
Cancel
Save