def clone(self, newname, config_path=None, flags=0, bdevtype=None,
              bdevdata=None, newsize=0, hookargs=()):
        """
            Clone the current container.
        """

        args = {}
        args['newname'] = newname
        args['flags'] = flags
        args['newsize'] = newsize
        args['hookargs'] = hookargs
        if config_path:
            args['config_path'] = config_path
        if bdevtype:
            args['bdevtype'] = bdevtype
        if bdevdata:
            args['bdevdata'] = bdevdata

        if _lxc.Container.clone(self, **args):
            return Container(newname, config_path=config_path)
        else:
            return False
def clone ( self , newname , config_path = None , flags = 0 , bdevtype = None , bdevdata = None , newsize = 0 , hookargs = ( ) ) : args = { } args [ 'newname' ] = newname args [ 'flags' ] = flags args [ 'newsize' ] = newsize args [ 'hookargs' ] = hookargs if config_path : args [ 'config_path' ] = config_path if bdevtype : args [ 'bdevtype' ] = bdevtype if bdevdata : args [ 'bdevdata' ] = bdevdata if _lxc . Container . clone ( self , ** args ) : return Container ( newname , config_path = config_path ) else : return False
Clone the current container.