mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix parted module set CLI example
This commit is contained in:
parent
a8429c2595
commit
2cd0433f8d
1 changed files with 4 additions and 2 deletions
|
@ -614,8 +614,10 @@ def set_(device, minor, flag, state):
|
|||
'''
|
||||
Changes a flag on the partition with number <minor>.
|
||||
|
||||
A flag can be either "on" or "off". Some or all of these flags will be
|
||||
A flag can be either "on" or "off" (make sure to use proper quoting, see `YAML Idiosyncrasies`_). Some or all of these flags will be
|
||||
available, depending on what disk label you are using.
|
||||
|
||||
.. _`YAML Idiosyncrasies`: https://docs.saltstack.com/en/latest/topics/troubleshooting/yaml_idiosyncrasies.html#true-false-yes-no-on-off
|
||||
|
||||
Valid flags are: bios_grub, legacy_boot, boot, lba, root, swap, hidden, raid,
|
||||
LVM, PALO, PREP, DIAG
|
||||
|
@ -624,7 +626,7 @@ def set_(device, minor, flag, state):
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' partition.set /dev/sda 1 boot on
|
||||
salt '*' partition.set /dev/sda 1 boot '"on"'
|
||||
'''
|
||||
_validate_device(device)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue