Skip to content

Commit 5b582c5

Browse files
committed
Fix CR bug in crudini usage
1 parent c138fb8 commit 5b582c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ get_openstack_option_value () {
133133
CONFIG_FILE_PATH=$4
134134

135135
# Return an empty result if the value is not found
136-
run_ssh_cmd_with_retry $SSHUSER_HOST "crudini --get $CONFIG_FILE_PATH $SECTION_NAME $OPTION_NAME 2> /dev/null || if [ \"\$?\" == \"1\" ]; then true; else false; fi"
136+
# TODO: improve the hack that removes the trailing '\r\n'
137+
run_ssh_cmd_with_retry $SSHUSER_HOST "crudini --get $CONFIG_FILE_PATH $SECTION_NAME $OPTION_NAME 2> /dev/null || if [ \"\$?\" == \"1\" ]; then true; else false; fi" | tr -d '\r'
137138
}
138139

139140
configure_ssh_pubkey_auth () {

0 commit comments

Comments
 (0)