当前位置: 首页>>代码示例>>Python>>正文


Python BaseData.__init__方法代码示例

本文整理汇总了Python中pykickstart.base.BaseData.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python BaseData.__init__方法的具体用法?Python BaseData.__init__怎么用?Python BaseData.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pykickstart.base.BaseData的用法示例。


在下文中一共展示了BaseData.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.ipaddr = kwargs.get("ipaddr", "")
     self.port = kwargs.get("port", "3260")
     self.target = kwargs.get("target", "")
     self.user = kwargs.get("user", None)
     self.password = kwargs.get("password", None)
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:9,代码来源:iscsi.py

示例2: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.format = kwargs.get("format", True)
     self.pesize = kwargs.get("pesize", 32768)
     self.preexist = kwargs.get("preexist", False)
     self.vgname = kwargs.get("vgname", "")
     self.physvols = kwargs.get("physvols", [])
开发者ID:piyush1911,项目名称:pykickstart,代码行数:9,代码来源:volgroup.py

示例3: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.action = kwargs.get("action", None)
     self.namespace = kwargs.get("namespace", "")
     self.mode = kwargs.get("mode", None)
     self.sectorsize = kwargs.get("sectorsize", None)
     self.blockdevs = kwargs.get("blockdevs", [])
开发者ID:atodorov,项目名称:pykickstart,代码行数:9,代码来源:nvdimm.py

示例4: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.devnum = kwargs.get("devnum", "")
     self.wwpn = kwargs.get("wwpn", "")
     self.fcplun = kwargs.get("fcplun", "")
     self.scsiid = kwargs.get("scsiid", "")
     self.scsilun = kwargs.get("scsilun", "")
开发者ID:autotune,项目名称:pykickstart,代码行数:9,代码来源:zfcp.py

示例5: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.mount_point = kwargs.get("mount_point", "")
     self.device = kwargs.get("device", "")
     self.format = kwargs.get("format", "")
     self.reformat = kwargs.get("reformat", False)
     self.mkfs_opts = kwargs.get("mkfs_opts", "")
     self.mount_opts = kwargs.get("mount_opts", "")
开发者ID:atodorov,项目名称:pykickstart,代码行数:10,代码来源:mount.py

示例6: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.name = kwargs.get("name", "")
     self.minlen = kwargs.get("minlen", 8)
     self.minquality = kwargs.get("minquality", 50)
     self.strict = kwargs.get("strict", True)
     self.changesok = kwargs.get("changesok", False)
     self.emptyok = kwargs.get("emptyok", True)
开发者ID:Jakuje,项目名称:anaconda,代码行数:10,代码来源:pwpolicy.py

示例7: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.groups = kwargs.get("groups", [])
     self.homedir = kwargs.get("homedir", "")
     self.isCrypted = kwargs.get("isCrypted", False)
     self.name = kwargs.get("name", "")
     self.password = kwargs.get("password", "")
     self.shell = kwargs.get("shell", "")
     self.uid = kwargs.get("uid", None)
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:11,代码来源:user.py

示例8: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.device = kwargs.get("device", None)
     self.fstype = kwargs.get("fstype", "")
     self.level = kwargs.get("level", "")
     self.format = kwargs.get("format", True)
     self.spares = kwargs.get("spares", 0)
     self.preexist = kwargs.get("preexist", False)
     self.mountpoint = kwargs.get("mountpoint", "")
     self.members = kwargs.get("members", [])
开发者ID:autotune,项目名称:pykickstart,代码行数:12,代码来源:raid.py

示例9: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.fstype = kwargs.get("fstype", "")
     self.grow = kwargs.get("grow", False)
     self.maxSizeMB = kwargs.get("maxSizeMB", 0)
     self.name = kwargs.get("name", "")
     self.format = kwargs.get("format", True)
     self.percent = kwargs.get("percent", 0)
     self.recommended = kwargs.get("recommended", False)
     self.size = kwargs.get("size", None)
     self.preexist = kwargs.get("preexist", False)
     self.vgname = kwargs.get("vgname", "")
     self.mountpoint = kwargs.get("mountpoint", "")
开发者ID:jasontibbitts,项目名称:pykickstart,代码行数:15,代码来源:logvol.py

示例10: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
    def __init__(self, *args, **kwargs):
        BaseData.__init__(self, *args, **kwargs)
        self.format = kwargs.get("format", True)
        self.preexist = kwargs.get("preexist", False)
        self.label = kwargs.get("label", "")
        self.mountpoint = kwargs.get("mountpoint", "")
        self.devices = kwargs.get("devices", [])
        self.dataLevel = kwargs.get("data", None)
        self.metaDataLevel = kwargs.get("metadata", None)

        # subvolume-specific
        self.subvol = kwargs.get("subvol", False)
        self.name = kwargs.get("name", None)        # required
开发者ID:nandakishore1006,项目名称:pykickstart,代码行数:15,代码来源:btrfs.py

示例11: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.active = kwargs.get("active", False)
     self.primOnly = kwargs.get("primOnly", False)
     self.end = kwargs.get("end", 0)
     self.fstype = kwargs.get("fstype", "")
     self.grow = kwargs.get("grow", False)
     self.maxSizeMB = kwargs.get("maxSizeMB", 0)
     self.format = kwargs.get("format", True)
     self.onbiosdisk = kwargs.get("onbiosdisk", "")
     self.disk = kwargs.get("disk", "")
     self.onPart = kwargs.get("onPart", "")
     self.recommended = kwargs.get("recommended", False)
     self.size = kwargs.get("size", None)
     self.start = kwargs.get("start", 0)
     self.mountpoint = kwargs.get("mountpoint", "")
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:18,代码来源:partition.py

示例12: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.bootProto = kwargs.get("bootProto", BOOTPROTO_DHCP)
     self.dhcpclass = kwargs.get("dhcpclass", "")
     self.device = kwargs.get("device", "")
     self.essid = kwargs.get("essid", "")
     self.ethtool = kwargs.get("ethtool", "")
     self.gateway = kwargs.get("gateway", "")
     self.hostname = kwargs.get("hostname", "")
     self.ip = kwargs.get("ip", "")
     self.mtu = kwargs.get("mtu", "")
     self.nameserver = kwargs.get("nameserver", "")
     self.netmask = kwargs.get("netmask", "")
     self.nodns = kwargs.get("nodns", False)
     self.onboot = kwargs.get("onboot", True)
     self.wepkey = kwargs.get("wepkey", "")
开发者ID:atodorov,项目名称:pykickstart,代码行数:18,代码来源:network.py

示例13: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.baseurl = kwargs.get("baseurl", "")
     self.mirrorlist = kwargs.get("mirrorlist", None)
     self.name = kwargs.get("name", "")
开发者ID:atodorov,项目名称:pykickstart,代码行数:7,代码来源:repo.py

示例14: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.name = kwargs.get("name", "")
     self.origin = kwargs.get("origin", "")
     self.when = kwargs.get("when", None)
开发者ID:dustymabe,项目名称:pykickstart,代码行数:7,代码来源:snapshot.py

示例15: __init__

# 需要导入模块: from pykickstart.base import BaseData [as 别名]
# 或者: from pykickstart.base.BaseData import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.name = kwargs.get("name", "")
     self.paths = kwargs.get("paths", [])
开发者ID:M4rtinK,项目名称:pykickstart,代码行数:6,代码来源:multipath.py


注:本文中的pykickstart.base.BaseData.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。