コード例 #1
0
ファイル: objects.py プロジェクト: jschairb/holland
 def find_all(cls, name):
     """Find all volume groups matching the given name"""
     result = []
     for vginfo in vgs(name):
         logging.debug("Creating VolumeGroup from info %r", vginfo)
         result.append(VolumeGroup(**vginfo))
     return result
コード例 #2
0
 def find_all(cls, name):
     """Find all volume groups matching the given name"""
     result = []
     for vginfo in vgs(name):
         logging.debug("Creating VolumeGroup from info %r", vginfo)
         result.append(VolumeGroup(**vginfo))
     return result
コード例 #3
0
ファイル: objects.py プロジェクト: jschairb/holland
 def find_one(cls, name):
     """Find first LVM volume group matching the given name"""
     for vginfo in vgs(name):
         logging.debug("Creating VolumeGroup from info %r", vginfo)
         return VolumeGroup(**vginfo)
コード例 #4
0
 def find_one(cls, name):
     """Find first LVM volume group matching the given name"""
     for vginfo in vgs(name):
         logging.debug("Creating VolumeGroup from info %r", vginfo)
         return VolumeGroup(**vginfo)