drac-kvm
drac-kvm copied to clipboard
multiple-value gopass.GetPasswd() in single-value context
Hi Paul,
I've encountered this issue while compiling drac-kvm on my own: ./main.go:32:32: multiple-value gopass.GetPasswd() in single-value context
Here is the simple fix:
index 477f995..6170af5 100644
--- a/main.go
+++ b/main.go
@@ -29,7 +29,13 @@ const(
func promptPassword() string {
fmt.Print("Password: ")
- return string(gopass.GetPasswd())
+ pass, err := gopass.GetPasswd()
+
+ if err != nil {
+ log.Fatalf("GetPasswd error (%s)", err)
+ }
+
+ return string(pass)
}
func main() {
Facing the same issue, any hope on providing this as a PR @radek-senfeld ?
This repo is unmaintained AFAIK. I recommend using https://github.com/rockyluke/drac-kvm/.
Another fix has been merged promptly: https://github.com/rockyluke/drac-kvm/issues/7
Sorry for the belated reply..