mount: remove boot exception if defaults in opts

This commit is contained in:
copyrights 2022-05-23 22:21:11 +02:00
parent 2d3f55caa7
commit 1512495dd7

View file

@ -743,9 +743,6 @@ def main():
args['warnings'].append("Ignore the 'boot' due to 'opts' contains 'noauto'.")
elif not module.params['boot']:
args['boot'] = 'no'
if 'defaults' in opts:
args['warnings'].append("Ignore the 'boot' due to 'opts' contains 'defaults'.")
else:
opts.append('noauto')
args['opts'] = ','.join(opts)