mirror of
https://github.com/kopia/kopia.git
synced 2026-10-04 08:04:46 -04:00
cleanup
This commit is contained in:
1 parent
92330ac247
commit
2a72a57dc8
2 files changed
+2
-2
No files matched your search
@@ -39,7 +39,7 @@ func (m *PolicyManager) GetEffectivePolicy(si SourceInfo) (*Policy, error) {
|
||||
md = append(md, m.repository.Manifests.Find(labelsForSource(SourceInfo{Host: si.Host}))...)
|
||||
|
||||
// Global policy.
|
||||
md = append(md, m.repository.Manifests.Find(labelsForSource(SourceInfo{}))...)
|
||||
md = append(md, m.repository.Manifests.Find(labelsForSource(GlobalPolicySourceInfo))...)
|
||||
|
||||
var policies []*Policy
|
||||
for _, em := range md {
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ func (ssi SourceInfo) String() string {
|
||||
// or may be 'username@host:path' where path, username and host are not processed.
|
||||
func ParseSourceInfo(path string, hostname string, username string) (SourceInfo, error) {
|
||||
if path == "(global)" {
|
||||
return SourceInfo{}, nil
|
||||
return GlobalPolicySourceInfo, nil
|
||||
}
|
||||
|
||||
p1 := strings.Index(path, "@")
|
||||
|
||||
Reference in new issue
Block a user