Commit b8ddc090 authored by Dietmar Maurer's avatar Dietmar Maurer

fix UPID parser

Allow '-' in host names.
parent 6a9a5220
......@@ -383,7 +383,7 @@ Ext.define('PVE.Utils', { statics: {
parse_task_upid: function(upid) {
var task = {};
var res = upid.match(/^UPID:(\w+):([0-9A-Fa-f]{8}):([0-9A-Fa-f]{8}):([0-9A-Fa-f]{8}):([^:\s]+):([^:\s]*):([^:\s]+):$/);
var res = upid.match(/^UPID:(\S+):([0-9A-Fa-f]{8}):([0-9A-Fa-f]{8}):([0-9A-Fa-f]{8}):([^:\s]+):([^:\s]*):([^:\s]+):$/);
if (!res) {
throw "unable to parse upid '" + upid + "'";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment