
Listed below are the errors which were fixed as well as the actions taken to fix them: E010: do not on the same line as for --> let do and for in the same line E011: then not on the same line as if or elif --> let then and if or elif in the same line E020: Function declaration not in format ^function name {$ --> fix the format to suit ^function name {$ E041: Usage of $[ for arithmetic is deprecated for $(( --> fix from $[ to $(( E043: arithmetic compound has inconsistent return semantics --> do not use +=, ++, -=, --; use value=value+? instead. E001: check that lines do not end with trailing whitespace --> delete trailing whitespace E003: ensure all indents are a multiple of 4 spaces --> add/delete spaces E042: local declaration hides errors --> let declaration and assignment in two lines. Listed below are test cases done which run one controller and one compute in KVMs Test-Install ---- success Related: https://review.openstack.org/#/c/600663/ https://review.openstack.org/#/c/601221/ Story: 2003360 Task: 26213 Change-Id: I3ece37db3a326ea58bd344f43beefcbbbd4f0ad4 Signed-off-by: SidneyAn <ran1.an@intel.com>
22 lines
436 B
Bash
22 lines
436 B
Bash
#!/bin/bash
|
|
#
|
|
# Copyright (c) 2014 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# Configuration "goenabled" check.
|
|
# If configuration failed, prevent the node from going enabled.
|
|
|
|
NAME=$(basename $0)
|
|
VOLATILE_CONFIG_FAIL="/var/run/.config_fail"
|
|
|
|
logfile=/var/log/patching.log
|
|
|
|
if [ -f $VOLATILE_CONFIG_FAIL ]; then
|
|
logger "$NAME: Node configuration has failed. Failing goenabled check."
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|