Skip to content

Commit

Permalink
Fixe typo and bad printing on script execution
Browse files Browse the repository at this point in the history
  • Loading branch information
svaroqui committed May 21, 2024
1 parent 5aabc4c commit 83086cb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cluster/cluster_bash.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (cluster *Cluster) BashScriptAlert(alert alert.Alert) error {
cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModGeneral, "ERROR", "%s", err)
}

cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModGeneral, "INFO", "Alert script complete:", string(out))
cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModGeneral, "INFO", "Alert script complete: %s", string(out))
}
return nil
}
Expand All @@ -37,7 +37,7 @@ func (cluster *Cluster) BashScriptOpenSate(state state.State) error {
cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModGeneral, "ERROR", "%s", err)
}

cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModGeneral, "INFO", "Opee state script complete:", string(out))
cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModGeneral, "INFO", "Open state script complete: %s", string(out))
}
return nil
}
Expand All @@ -50,7 +50,7 @@ func (cluster *Cluster) BashScriptCloseSate(state state.State) error {
cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModGeneral, "ERROR", "%s", err)
}

cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModGeneral, "INFO", "Close state script complete:", string(out))
cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModGeneral, "INFO", "Close state script complete %s:", string(out))
}
return nil
}
Expand Down
6 changes: 6 additions & 0 deletions share/scripts/closestate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# This script is given as sample and will be overwrite on upgrade

echo "Close state script args"
echo "Script:$0, Cluster:$1, Server:$2, Code:$3"

7 changes: 7 additions & 0 deletions share/scripts/openstate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
# This script is given as sample and will be overwrite on upgrade

echo "Open state script args"
echo "Script:$0, Cluster:$1, Server:$2, Code:$3"


0 comments on commit 83086cb

Please sign in to comment.