Fix bug in vagrant plugin

This commit is contained in:
Anders Ingemann 2014-01-09 22:00:59 +01:00
parent 170e0d942d
commit fcd7fabab8

View file

@ -90,7 +90,8 @@ class PackageBox(Task):
logging.getLogger(__name__).info('The vagrant box has been placed at {box_path}'
.format(box_path=box_path))
def write_ovf(info, destination, box_name, mac_address, disk_name):
@classmethod
def write_ovf(cls, info, destination, box_name, mac_address, disk_name):
namespaces = {'ovf': 'http://schemas.dmtf.org/ovf/envelope/1',
'rasd': 'http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData',
'vssd': 'http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData',