Skip to content

Commit a520e65

Browse files
committed
Adding success or failure to writeback stats
1 parent a6098c5 commit a520e65

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bin/stashcp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ def doWriteBack(source, destination):
7979
'cache': 'None',
8080
'writeback': 'True'
8181
}
82+
83+
if curl_exit != 0:
84+
payload['status'] = "Failure"
85+
8286
es_send(payload)
8387
return curl_exit
8488

0 commit comments

Comments
 (0)