LGTM, thanks
On Wed, Aug 27, 2014 at 10:17 PM, Yuto KAWAMURA(kawamuray) < [email protected]> wrote: > Remove the unused _GetMountSubdirs function from LXCHypervisor class. > > Signed-off-by: Yuto KAWAMURA(kawamuray) <[email protected]> > --- > lib/hypervisor/hv_lxc.py | 14 -------------- > 1 file changed, 14 deletions(-) > > diff --git a/lib/hypervisor/hv_lxc.py b/lib/hypervisor/hv_lxc.py > index 74db9ce..9c4eb03 100644 > --- a/lib/hypervisor/hv_lxc.py > +++ b/lib/hypervisor/hv_lxc.py > @@ -85,20 +85,6 @@ class LXCHypervisor(hv_base.BaseHypervisor): > hv_base.BaseHypervisor.__init__(self) > self._EnsureDirectoryExistence() > > - @staticmethod > - def _GetMountSubdirs(path): > - """Return the list of mountpoints under a given path. > - > - """ > - result = [] > - for _, mountpoint, _, _ in utils.GetMounts(): > - if (mountpoint.startswith(path) and > - mountpoint != path): > - result.append(mountpoint) > - > - result.sort(key=lambda x: x.count("/"), reverse=True) > - return result > - > @classmethod > def _InstanceDir(cls, instance_name): > """Return the root directory for an instance. > -- > 2.0.4 > > Hrvoje Ribicic Ganeti Engineering Google Germany GmbH Dienerstr. 12, 80331, München Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschäftsführer: Graham Law, Christine Elizabeth Flores Steuernummer: 48/725/00206 Umsatzsteueridentifikationsnummer: DE813741370
