Skip to content

Commit

Permalink
CRAYSAT-1896: Add --cfs-version option to sat bootprep run
Browse files Browse the repository at this point in the history
Add the `--cfs-version` command-line option to `sat bootprep run`. This
option is used to select the version of the CFS API to use when creating
CFS configurations or checking for the existence of CFS configurations
when creating other items in the bootprep input file.

Add this option to the man page as well.

Test Description:
Built man page and examined in `man`.

Other testing yet to be performed on a system.
  • Loading branch information
haasken-hpe committed Nov 18, 2024
1 parent d826e1f commit 10d5836
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/man/sat-bootprep.8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ These options only apply to the ``run`` action.
**--bos-version BOS_VERSION**
The version of the BOS API to use when creating BOS session templates.

**--cfs-version CFS_VERSION**
The version of the CFS API to use when creating or checking for the
existence of CFS configurations.

**--recipe-version RECIPE_VERSION**
The HPC CSM Software Recipe version, e.g. 22.03. This is used to obtain the
product versions which can be substituted for variables specified in
Expand Down
7 changes: 6 additions & 1 deletion sat/cli/bootprep/parser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright 2021-2023 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -259,6 +259,11 @@ def _add_bootprep_run_subparser(subparsers):
choices=['v1', 'v2'],
help='The version of the BOS API to use for BOS operations',
)
run_subparser.add_argument(
'--cfs-version',
choices=['v2', 'v3'],
help='The version of the CFS API to use for CFS operations',
)

add_vars_options(run_subparser)
add_skip_and_overwrite_options(run_subparser, 'config', 'configuration')
Expand Down

0 comments on commit 10d5836

Please sign in to comment.