Update vmware/govmomi godeps
This commit is contained in:
6
vendor/github.com/vmware/govmomi/object/datastore_path.go
generated
vendored
6
vendor/github.com/vmware/govmomi/object/datastore_path.go
generated
vendored
@@ -18,6 +18,7 @@ package object
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"path"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -63,3 +64,8 @@ func (p *DatastorePath) String() string {
|
||||
|
||||
return strings.Join([]string{s, p.Path}, " ")
|
||||
}
|
||||
|
||||
// IsVMDK returns true if Path has a ".vmdk" extension
|
||||
func (p *DatastorePath) IsVMDK() bool {
|
||||
return path.Ext(p.Path) == ".vmdk"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user