Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 39dc94e

Browse files
committed
Cleanup of files
1 parent 7609bd2 commit 39dc94e

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

src/dboperations/dboperations.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def stop_mysql(port,connection,baseDir,vdbConn,pwd):
3737
if(port_stat == Status.ACTIVE):
3838
logger.debug("DB is Running. Shutting down.")
3939
shutdown_cmd = "%s/bin/mysqladmin %s'%s' --protocol=TCP --port=%s shutdown" % (baseDir,vdbConn,pwd,port)
40-
# logger.debug("Shutdown Command: {}".format(shutdown_cmd))
4140
result = libs.run_bash(connection, shutdown_cmd,environment_vars,check=True)
4241
output = result.stdout.strip()
4342
error = result.stderr.strip()

src/resources/library.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ stopDatabase() {
295295
ZBASEDIR=`echo "${ZRESULTS}" | $DLPX_BIN_JQ --raw-output ".baseDir"`
296296
ZLOGSYNC=`echo "${ZRESULTS}" | $DLPX_BIN_JQ --raw-output ".logSync"`
297297

298-
#echo "ZCONN:"
299298
masklog "$ZCONN"
300299

301300
# Found valid process ...
@@ -495,7 +494,6 @@ function terminate {
495494

496495
# Runs a given command and exits with code if error
497496
function command_runner {
498-
#masklog "command_runner: CMD : $1"
499497
return_msg=$(eval $1 2>&1 1>&2 > /dev/null)
500498
return_code=$?
501499
log "Return Status: ${return_code}"

src/resources/restore_stage.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ STAGINGPASS=`echo "'"${STAGINGPASS}"'"`
4343

4444
masklog "Staging Connection: ${STAGINGCONN}"
4545
RESULTS=$( buildConnectionString "${STAGINGCONN}" "${STAGINGPASS}" "${STAGINGPORT}" "${STAGINGHOSTIP}" )
46-
#echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"
4746
STAGING_CONN=`echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"`
4847
masklog "Staging Connection: ${STAGING_CONN}"
4948

@@ -101,15 +100,13 @@ ${MYSQLD}/mysqld --initialize --user=mysql --datadir=${NEW_DATA_DIR} --log-error
101100
PWD_LINE=`cat ${NEW_DATA_DIR}/mysqld.log | grep 'temporary password'`
102101
# sudo grep 'temporary password' ${NEW_DATA_DIR}/mysqld.log`
103102
# 2019-04-11T14:40:34.032576Z 1 [Note] A temporary password is generated for root@localhost: L0qXNZ8?C3Us
104-
# log "init temporary password: ${PWD_LINE}"
105103

106104
TMP_PWD=`echo "${PWD_LINE}" | ${AWK} -F": " '{print $2}' | xargs`
107105
# These temporary passwords contain special characters so need to wrap in single / literal quotes ...
108106
TMP_PWD=`echo "'"$TMP_PWD"'"`
109107
# log "Temporary Password: ${TMP_PWD}"
110108
masklog "Staging Connection: ${STAGINGCONN}"
111109
RESULTS=$( buildConnectionString "${STAGINGCONN}" "${TMP_PWD}" "${STAGINGPORT}" "${STAGINGHOSTIP}" )
112-
#echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"
113110
STAGING_CONN=`echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"`
114111
masklog "Staging Connection: ${STAGING_CONN}"
115112
log "Creation Results: ${RESULTS}"
@@ -390,7 +387,6 @@ command_runner "${CMD}" 5
390387
#
391388
masklog "Staging Connection Prior to updaging password : ${STAGINGCONN}"
392389
RESULTS=$( buildConnectionString "${STAGINGCONN}" "${STAGINGPASS}" "${STAGINGPORT}" "${STAGINGHOSTIP}" )
393-
#echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"
394390
STAGING_CONN=`echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"`
395391
masklog "Staging Connection after updating password: ${STAGING_CONN}"
396392

src/resources/restore_stage_bi.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ log "Staging Port: ${TARGET_PORT}"
3636
STAGINGPASS=`echo "'"${STAGINGPASS}"'"`
3737
masklog "Staging Connection: ${STAGINGCONN}"
3838
RESULTS=$( buildConnectionString "${STAGINGCONN}" "${STAGINGPASS}" "${STAGINGPORT}" "${STAGINGHOSTIP}" )
39-
# echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"
4039
STAGING_CONN=`echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"`
4140
masklog "Staging Connection: ${STAGING_CONN}"
4241

@@ -80,10 +79,8 @@ TMP_PWD=`echo "${PWD_LINE}" | ${AWK} -F": " '{print $2}' | xargs`
8079

8180
# These temporary passwords contain special characters so need to wrap in single / literal quotes ...
8281
TMP_PWD=`echo "'"$TMP_PWD"'"`
83-
# log "Temporary Password: ${TMP_PWD}"
8482
masklog "Staging Connection: ${STAGINGCONN}"
8583
RESULTS=$( buildConnectionString "${STAGINGCONN}" "${TMP_PWD}" "${STAGINGPORT}" "${STAGINGHOSTIP}" )
86-
# echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"
8784
STAGING_CONN=`echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"`
8885
masklog "Staging Connection: ${STAGING_CONN}"
8986
masklog "Creation Results: ${RESULTS}"
@@ -350,7 +347,6 @@ command_runner "${CMD}" 5
350347
# Update Staging Connection with supplied password ...
351348
masklog "Staging Connection Prior to updating password : ${STAGINGCONN}"
352349
RESULTS=$( buildConnectionString "${STAGINGCONN}" "${STAGINGPASS}" "${STAGINGPORT}" "${STAGINGHOSTIP}" )
353-
# echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"
354350
STAGING_CONN=`echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"`
355351
log "============================================================"
356352
masklog "Staging Connection after updating password: ${STAGING_CONN}"

0 commit comments

Comments
 (0)