File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,16 @@ func (cmd *deploy) Description() string {
88
88
89
89
Examples:
90
90
govc library.deploy /library_name/ovf_template vm_name
91
- govc library.deploy /library_name/ovf_template -options deploy.json`
91
+ govc library.export /library_name/ovf_template/*.ovf # save local copy of .ovf
92
+ govc import.spec *.ovf > deploy.json # generate options from .ovf
93
+ # edit deploy.json as needed
94
+ govc library.deploy -options deploy.json /library_name/ovf_template`
92
95
}
93
96
94
97
func (cmd * deploy ) Run (ctx context.Context , f * flag.FlagSet ) error {
98
+ if f .NArg () > 2 {
99
+ return flag .ErrHelp
100
+ }
95
101
path := f .Arg (0 )
96
102
name := f .Arg (1 )
97
103
Original file line number Diff line number Diff line change @@ -221,6 +221,9 @@ load test_helper
221
221
}
222
222
EOF
223
223
224
+ run govc library.deploy " my-content/$TTYLINUX_NAME " -options " $BATS_TMPDIR /ttylinux.json"
225
+ assert_failure # see issue #2599
226
+
224
227
run govc library.deploy -options " $BATS_TMPDIR /ttylinux.json" " my-content/$TTYLINUX_NAME "
225
228
assert_success
226
229
rm " $BATS_TMPDIR /ttylinux.json"
You can’t perform that action at this time.
0 commit comments