drac-kvm icon indicating copy to clipboard operation
drac-kvm copied to clipboard

multiple-value gopass.GetPasswd() in single-value context

Open radek-senfeld opened this issue 6 years ago • 2 comments

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() {

radek-senfeld avatar Sep 24 '18 08:09 radek-senfeld

Facing the same issue, any hope on providing this as a PR @radek-senfeld ?

jonlil avatar Nov 17 '18 19:11 jonlil

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..

radek-senfeld avatar Feb 01 '19 11:02 radek-senfeld