def zap(dev=None, **kwargs): ''' Destroy the partition table and content of a given disk. .. code-block:: bash salt '*' ceph.osd_prepare 'dev'='/dev/vdc' \\ 'cluster_name'='ceph' \\ 'cluster_uuid'='cluster_uuid' Notes: dev The block device to format. cluster_name Set the cluster name. Defaults to "ceph". cluster_uuid Set the cluster date will be added too. Defaults to the value found in local config. ''' if dev is not None: log.warning("Depricated use of function, use kwargs") dev = kwargs.get("dev", dev) kwargs["dev"] = dev return ceph_cfg.zap(**kwargs)
def zap(target=None, **kwargs): ''' Destroy the partition table and content of a given disk. .. code-block:: bash salt '*' ceph_cfg.osd_prepare 'dev'='/dev/vdc' \\ 'cluster_name'='ceph' \\ 'cluster_uuid'='cluster_uuid' Notes: dev The block device to format. cluster_name Set the cluster name. Defaults to "ceph". cluster_uuid Set the cluster date will be added too. Defaults to the value found in local config. ''' if target is not None: log.warning("Depricated use of function, use kwargs") target = kwargs.get("dev", target) kwargs["dev"] = target return ceph_cfg.zap(**kwargs)
def zap(dev=None, **kwargs): """ Destroy the partition table and content of a given disk. """ if dev is not None: log.warning("Depricated use of function, use kwargs") dev = kwargs.get("dev", dev) kwargs["dev"] = dev return ceph_cfg.zap(**kwargs)
def zap(target=None, **kwargs): ''' Destroy the partition table and content of a given disk. .. code-block:: bash salt '*' ceph.osd_prepare 'dev'='/dev/vdc' \\ 'cluster_name'='ceph' \\ 'cluster_uuid'='cluster_uuid' dev The block device to format. cluster_name The cluster name. Defaults to ``ceph``. cluster_uuid The cluster UUID. Defaults to value found in ceph config file. ''' if target is not None: log.warning("Depricated use of function, use kwargs") target = kwargs.get("dev", target) kwargs["dev"] = target return ceph_cfg.zap(**kwargs)