Skip to content

Commit

Permalink
fix: fixed the output for port print (#816)
Browse files Browse the repository at this point in the history
it just returns the url associated with port id.
  • Loading branch information
Peeeekay committed Jul 5, 2023
1 parent e516918 commit ede32e7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cli/cli/commands/port/print/print.go
Expand Up @@ -108,7 +108,7 @@ func run(
publicPort, found := publicPorts[portIdentifier]
if !found {
return stacktrace.NewError(
fmt.Sprintf("Port Identifier: %v is not found for service: %v in enclave %v", portIdentifier, serviceIdentifier, enclaveIdentifier),
fmt.Sprintf("Port Identifier: '%v' is not found for service: '%v' in enclave '%v'", portIdentifier, serviceIdentifier, enclaveIdentifier),
)
}

Expand All @@ -119,10 +119,6 @@ func run(
fullUrl = fmt.Sprintf("%v://%v", maybeApplicationProtocol, fullUrl)
}

outputString := fmt.Sprintf("Here is the port information for port: %v for %v in %v",
portIdentifier, serviceIdentifier, enclaveIdentifier)

out.PrintOutLn(outputString)
out.PrintOutLn(fmt.Sprintf("The url is: %v", fullUrl))
out.PrintOutLn(fullUrl)
return nil
}

0 comments on commit ede32e7

Please sign in to comment.