Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra logging for the fstab creation #171

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions saltboot-formula/_states/saltboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ def fstab_updated(name, partitioning, images):

devmap = _device_map(partitioning)
root_device = None

luks_pass = None

report_progress = False
if not __opts__['test']:
Expand All @@ -1634,7 +1634,6 @@ def fstab_updated(name, partitioning, images):
return ret



if not __opts__['test']:
if report_progress:
__salt__['cmd.run_all']("echo 'Updating fstab' > /progress ", python_shell=True, output_loglevel='trace')
Expand Down Expand Up @@ -1717,10 +1716,10 @@ def fstab_updated(name, partitioning, images):
else:
if out == 'new':
_add_change(ret['changes'], {'add': name})
ret['comment'] += "\n{0} added".format(name)
ret['comment'] += "\n{0} added as {1}".format(name, uuid)
if out == 'change':
_add_change(ret['changes'], {'update': name})
ret['comment'] += "\n{0} updated".format(name)
ret['comment'] += "\n{0} updated as {1}".format(name, uuid)

if out == 'bad config':
ret['result'] = False
Expand Down