Skip to content

Commit

Permalink
Enable sync for dfs endpoints (#2376)
Browse files Browse the repository at this point in the history
  • Loading branch information
nakulkar-msft authored Sep 25, 2023
1 parent 08a60ee commit 91751c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ func (raw *rawSyncCmdArgs) cook() (cookedSyncCmdArgs, error) {
switch cooked.fromTo {
case common.EFromTo.Unknown():
return cooked, fmt.Errorf("Unable to infer the source '%s' / destination '%s'. ", raw.src, raw.dst)
case common.EFromTo.LocalBlob(), common.EFromTo.LocalFile():
case common.EFromTo.LocalBlob(), common.EFromTo.LocalFile(), common.EFromTo.LocalBlobFS():
cooked.destination, err = SplitResourceString(raw.dst, cooked.fromTo.To())
common.PanicIfErr(err)
case common.EFromTo.BlobLocal(), common.EFromTo.FileLocal():
case common.EFromTo.BlobLocal(), common.EFromTo.FileLocal(), common.EFromTo.BlobFSLocal():
cooked.source, err = SplitResourceString(raw.src, cooked.fromTo.From())
common.PanicIfErr(err)
case common.EFromTo.BlobBlob(), common.EFromTo.FileFile(), common.EFromTo.BlobFile(), common.EFromTo.FileBlob(), common.EFromTo.BlobFSBlobFS(), common.EFromTo.BlobFSBlob(), common.EFromTo.BlobFSFile(), common.EFromTo.BlobBlobFS(), common.EFromTo.FileBlobFS():
Expand Down
2 changes: 2 additions & 0 deletions e2etest/declarativeHelpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,13 @@ func (TestFromTo) AllSync() TestFromTo {
common.ELocation.Blob(),
common.ELocation.File(),
common.ELocation.Local(),
common.ELocation.BlobFS(),
},
tos: []common.Location{
common.ELocation.Blob(),
common.ELocation.File(),
common.ELocation.Local(),
common.ELocation.BlobFS(),
},
}
}
Expand Down

0 comments on commit 91751c0

Please sign in to comment.