Skip to content

Commit

Permalink
Merge pull request #78 from joereuss12/remove-cvmfs-shortcut-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bbockelm authored Aug 31, 2023
2 parents d1cf11b + 8ebebe6 commit a25e8e0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 81 deletions.
2 changes: 1 addition & 1 deletion cmd/object_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func init() {
flagSet.Bool("closest", false, "Return the closest cache and exit")
flagSet.BoolP("debug", "d", false, "Enable debug logs") // Typically set by the root command (which doesn't exist in stashcp mode)
flagSet.Bool("list-names", false, "Return the names of pre-configured cache lists and exit")
flagSet.String("methods", "cvmfs,http", "Comma separated list of methods to try, in order")
flagSet.String("methods", "http", "Comma separated list of methods to try, in order")
flagSet.Bool("namespaces", false, "Print the namespace information and exit")
flagSet.Bool("plugininterface", false, "Output in HTCondor plugin format. Turned on if executable is named stash_plugin")
flagSet.Lookup("plugininterface").Hidden = true // This has been a no-op for quite some time.
Expand Down
2 changes: 1 addition & 1 deletion cmd/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func stashPluginMain(args []string) {
pelican.ObjectClientOptions.ProgressBars = false
pelican.ObjectClientOptions.Version = version
setLogging(log.PanicLevel)
methods := []string{"cvmfs", "http"}
methods := []string{"http"}
var infile, outfile, testCachePath string
var useOutFile bool = false
var getCaches bool = false
Expand Down
68 changes: 0 additions & 68 deletions handle_cvmfs.go

This file was deleted.

11 changes: 0 additions & 11 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,17 +507,6 @@ Loop:
for _, method := range methods {

switch method {
case "cvmfs":
if strings.HasPrefix(sourceFile, "/osgconnect/") {
log.Info("Trying CVMFS...")
if downloaded, err = download_cvmfs(sourceFile, destination, &payload); err == nil {
success = true
break Loop
//check if break still works
}
} else {
log.Debug("Skipping CVMFS as file does not start with /osgconnect/")
}
case "http":
log.Info("Trying HTTP...")
if downloaded, err = download_http(sourceFile, destination, &payload, ns, recursive, token_name, OSDFDirectorUrl); err == nil {
Expand Down

0 comments on commit a25e8e0

Please sign in to comment.