Use empty username when username is not present
Use empty username when username is not present in snapshot.
This commit is contained in:
commit
26bab7ba5d
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ class ResticCollector(object):
|
|||
clients.append(
|
||||
{
|
||||
"hostname": snap["hostname"],
|
||||
"username": snap["username"],
|
||||
"username": snap["username"] if "username" in snap else "",
|
||||
"snapshot_hash": snap["hash"],
|
||||
"snapshot_tag": tag,
|
||||
"timestamp": timestamp,
|
||||
|
|
Loading…
Reference in a new issue