Skip to content

Commit

Permalink
Get rid of sqlite & use json registries
Browse files Browse the repository at this point in the history
  • Loading branch information
oleewere committed Oct 21, 2018
1 parent 74dad14 commit ab53f87
Show file tree
Hide file tree
Showing 45 changed files with 199 additions and 230,010 deletions.
8 changes: 1 addition & 7 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ambari/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ func GetPassword(flagValue string, text string) string {
return flagValue
}

// EvaluateBoolValueAsInt get a string boolean answer and evaluate an int (0: false, 1:true)
func EvaluateBoolValueAsInt(answer string) int {
// EvaluateBoolValueFromString get a string boolean answer and evaluate as a boolean value
func EvaluateBoolValueFromString(answer string) bool {
trueAnswerList := []string{"y", "yes", "true", "1"}
result := 0
result := false
for _, v := range trueAnswerList {
if v == strings.ToLower(answer) {
result = 1
result = true
}
}
return result
Expand Down
Loading

0 comments on commit ab53f87

Please sign in to comment.