swift_update_disk_lists.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:os-services 作者: open-power-ref-design-toolkit 项目源码 文件源码
def parse_command():
    """Parse the command arguments for generate user config."""
    parser = argparse.ArgumentParser(
        formatter_class=argparse.RawDescriptionHelpFormatter,
        description=('A command to add swift account, container, and '
                     'object disk lists to the Genesis inventory file.'))
    parser.add_argument('-n', '--nodename', required=True,
                        help=('Name of host in the Genesis inventory YAML'
                              'file.'))
    parser.add_argument('-i', '--input-file', required=True,
                        help=('Path to the Genesis inventory YAML file.'))
    parser.add_argument('-d', '--disklist-file', required=True,
                        help=('Path to the disk list file (flat, non-YAML).'))
    parser.add_argument('-t', '--disklist-type', required=True,
                        help=('<account | container | object>.'))
    parser.add_argument('-o', '--output-file', default='output.inventory.yml',
                        help=('Path to the updated Genesis inventory YAML'
                              'file to be generated.'))

    return parser
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号