Skip to content

Commit

Permalink
hostname moved into if
Browse files Browse the repository at this point in the history
  • Loading branch information
lookup82 committed Jul 4, 2024
1 parent 00cb938 commit d130a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pbsapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ func (pbs *PBSClient) Connect(reader bool) {

pbs.manifest.BackupTime = time.Now().Unix()
pbs.manifest.BackupType = "host"
hostname, _ := os.Hostname()
if pbs.manifest.BackupID == "" {
hostname, _ := os.Hostname()
pbs.manifest.BackupID = hostname
}
pbs.client = http.Client{
Expand Down

0 comments on commit d130a81

Please sign in to comment.