Pool.create source_volume argument is optional
This commit is contained in:
parent
db608f6e01
commit
3dd77719c1
@ -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`.
|
||||
'''
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user