Revision b33b6f55

b/lib/backend.py
660 660
          'state': state,
661 661
          'time': times,
662 662
          }
663
        if name in output and output[name] != value:
664
          raise errors.HypervisorError("Instance %s running duplicate"
665
                                       " with different parameters" % name)
663
        if name in output:
664
          # we only check static parameters, like memory and vcpus,
665
          # and not state and time which can change between the
666
          # invocations of the different hypervisors
667
          for key in 'memory', 'vcpus':
668
            if value[key] != output[name][key]:
669
              raise errors.HypervisorError("Instance %s is running twice"
670
                                           " with different parameters" % name)
666 671
        output[name] = value
667 672

  
668 673
  return output

Also available in: Unified diff