mirror of
https://github.com/kopia/kopia.git
synced 2026-01-26 23:38:04 -05:00
cleanup
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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