Pool.create source_volume argument is optional

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-05-29 00:51:06 +02:00
parent db608f6e01
commit 3dd77719c1
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE
2 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ class Pool(object):
def __xml__(self):
return lxml.etree.Element('pool', **self.config)
def create(self, volume, source_volume):
def create(self, volume, source_volume=None):
''' Create the given volume on disk or copy from provided
`source_volume`.
'''

View File

@ -67,7 +67,7 @@ class LinuxKernel(Pool):
def clone(self, source, target):
return target
def create(self, volume, source_volume):
def create(self, volume, source_volume=None):
return volume
def commit_template_changes(self, volume):