|
430 | 430 | data: data.zone, |
431 | 431 | complete: steps.createPod, |
432 | 432 | error: function(json) { |
433 | | - error('addZone', parseXMLHttpResponse(json), 'createZone'); |
| 433 | + error('addZone', parseXMLHttpResponse(json), { fn: 'createZone', args: args }); |
434 | 434 | } |
435 | 435 | }); |
436 | 436 | }, |
|
456 | 456 | steps.createNetwork({ data: $.extend(args.data, { pod: item })}); |
457 | 457 | }, |
458 | 458 | error: function(json) { |
459 | | - error('addPod', parseXMLHttpResponse(json), 'createPod'); |
| 459 | + error('addPod', parseXMLHttpResponse(json), { fn: 'createPod', args: args }); |
460 | 460 | } |
461 | 461 | }); |
462 | 462 | }, |
|
600 | 600 | steps.createCluster({ data: $.extend(args.data, { guestNetwork: successArgs.data })}); |
601 | 601 | }, |
602 | 602 | error: function(json) { |
603 | | - error('addNetwork', parseXMLHttpResponse(json), 'createNetwork'); |
| 603 | + error('addNetwork', parseXMLHttpResponse(json), { fn: 'createNetwork', args: args }); |
604 | 604 | } |
605 | 605 | }, |
606 | 606 | data: { |
|
639 | 639 | }); |
640 | 640 | }, |
641 | 641 | error: function(json) { |
642 | | - error('addCluster', parseXMLHttpResponse(json), 'createCluster'); |
| 642 | + error('addCluster', parseXMLHttpResponse(json), { fn: 'createCluster', args: args }); |
643 | 643 | } |
644 | 644 | }); |
645 | 645 | }, |
|
668 | 668 | }); |
669 | 669 | }, |
670 | 670 | error: function(json) { |
671 | | - error('addHost', parseXMLHttpResponse(json), 'createHost'); |
| 671 | + error('addHost', parseXMLHttpResponse(json), { fn: 'createHost', args: args }); |
672 | 672 | } |
673 | 673 | }); |
674 | 674 | }, |
|
696 | 696 | }); |
697 | 697 | }, |
698 | 698 | error: function(json) { |
699 | | - error('addPrimaryStorage', parseXMLHttpResponse(json), 'createPrimaryStorage'); |
| 699 | + error('addPrimaryStorage', parseXMLHttpResponse(json), { fn: 'createPrimaryStorage', args: args }); |
700 | 700 | } |
701 | 701 | }); |
702 | 702 | }, |
|
716 | 716 | steps.pollSystemVMs(); |
717 | 717 | }, |
718 | 718 | error: function(json) { |
719 | | - error('addSecondaryStorage', parseXMLHttpResponse(json), 'createSecondaryStorage'); |
| 719 | + error('addSecondaryStorage', parseXMLHttpResponse(json), { fn: 'createSecondaryStorage', args: args }); |
720 | 720 | } |
721 | 721 | }); |
722 | 722 | }, |
|
747 | 747 | }; |
748 | 748 |
|
749 | 749 | if (startFn) { |
750 | | - steps[startFn](); |
| 750 | + steps[startFn.fn](startFn.args); |
751 | 751 | } else { |
752 | 752 | steps.createZone(); |
753 | 753 | } |
|
0 commit comments