Skip to content

Commit 644656d

Browse files
committed
Fixed 'scw inspect -f' always exiting 1
1 parent 2e98361 commit 644656d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,7 @@ $ scw inspect myserver | jq '.[0].public_ip.address'
10241024

10251025
#### Fixes
10261026

1027+
* `scw inspect -f` was always exiting 0
10271028
* `scw images -a` does not prefix snapshots, volumes and bootscripts (only images)
10281029
* `scw run ...` waits for 30 seconds before polling the API
10291030
* `scw stop server1 server2` doesn't exit on first stopping failure

commands/inspect.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func runInspect(cmd *types.Command, args []string) {
8686
log.Fatalf("Format execution error: %v", err)
8787
}
8888
fmt.Fprint(os.Stdout, "\n")
89+
nbInspected++
8990
}
9091
}
9192
res += "]"

0 commit comments

Comments
 (0)