State module.run not passing all arguments #51858
Labels
Bug
broken, incorrect, or confusing behavior
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description of Issue/Question
When using state
module.run
to call theextfs.mkfs
it's not passing thelabel
argument through.Setup
Steps to Reproduce Issue
Run state.sls expecting it to format
/dev/disk/by-id/scsi-0Google_PersistentDisk_borg-repository
with the label "Borg-Repository-label", the format works but the label is not set.Below are snipped debug logs. In that run, I also had m_label set to see if that worked, and there is a second mount state that follows the format state. The OrderedDict clearly has label as a parameter, but it's not passed to mke2fs.
Running the module directly instead of the state shows that label is correctly used, so it's something to do with module.run not passing things correctly, but I can't see in the code where the problem is.
Versions Report
Client is Ubuntu 18.04, master is 16.04 still. But both on 2019.2.0 salt.
The text was updated successfully, but these errors were encountered: