Skip to content
Snippets Groups Projects
Commit 271b38f7 authored by Josh Brooks's avatar Josh Brooks
Browse files

Revert changes to cmd/ package

parent 26c4a717
Branches
Tags
No related merge requests found
...@@ -41,7 +41,7 @@ var getNDFCmd = &cobra.Command{ ...@@ -41,7 +41,7 @@ var getNDFCmd = &cobra.Command{
Args: cobra.NoArgs, Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
gwHost := viper.GetString("gwhost") gwHost := viper.GetString("gwhost")
//permHost := viper.GetString("permhost") permHost := viper.GetString("permhost")
certPath := viper.GetString("cert") certPath := viper.GetString("cert")
// Load the certificate // Load the certificate
...@@ -79,22 +79,21 @@ var getNDFCmd = &cobra.Command{ ...@@ -79,22 +79,21 @@ var getNDFCmd = &cobra.Command{
fmt.Printf("%s", resp.PartialNDF.Ndf) fmt.Printf("%s", resp.PartialNDF.Ndf)
return return
} }
// fixme: RequestNdf is no longer exposed to client. This block may need to be removed if permHost != "" {
//if permHost != "" { host, _ := connect.NewHost(&id.Permissioning, permHost,
// host, _ := connect.NewHost(&id.Permissioning, permHost, cert, params)
// cert, params) pollMsg := &pb.NDFHash{
// pollMsg := &pb.NDFHash{ Hash: []byte("DummyUserRequest"),
// Hash: []byte("DummyUserRequest"), }
// } resp, err := comms.RequestNdf(host, pollMsg)
// resp, err := comms.RequestNdf(host, pollMsg) if err != nil {
// if err != nil { jww.FATAL.Panicf("Unable to ask %s for NDF:"+
// jww.FATAL.Panicf("Unable to ask %s for NDF:"+ " %+v",
// " %+v", permHost, err)
// permHost, err) }
// } fmt.Printf("%s", resp.Ndf)
// fmt.Printf("%s", resp.Ndf) return
// return }
//}
fmt.Println("Enter --gwhost or --permhost and --cert please") fmt.Println("Enter --gwhost or --permhost and --cert please")
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment