Fix CLI not shows package name when creating a function (#966)

This commit is contained in:
Ta-Ching Chen
2018-11-05 17:19:05 +08:00
committed by GitHub
parent 253e44fdbe
commit 9764eff05d
+3 -1
View File
@@ -202,6 +202,8 @@ func fnCreate(c *cli.Context) error {
// create new package in the same namespace as the function.
pkgMetadata = createPackage(client, fnNamespace, envName, envNamespace, srcArchiveName, deployArchiveName, buildcmd, specFile)
fmt.Printf("package '%v' created\n", pkgMetadata.Name)
}
invokeStrategy := getInvokeStrategy(c.Int("minscale"), c.Int("maxscale"), c.String("executortype"), getTargetCPU(c))
@@ -681,7 +683,7 @@ func fnLogs(c *cli.Context) error {
}
logEntries, err := logDB.GetLogs(logFilter)
if err != nil {
log.Fatal("failed to query logs")
log.Fatal(fmt.Sprintf("Error querying logs: %v", err))
}
for _, logEntry := range logEntries {
if c.Bool("d") {