From ab9b0558d3911b3b738d3615ad70bcc9d437443b Mon Sep 17 00:00:00 2001 From: Alexander Bulimov Date: Wed, 13 Jan 2016 17:39:42 +0300 Subject: [PATCH] Allow recreation of same FS with force=yes --- system/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/filesystem.py b/system/filesystem.py index b44168a0e06..8b19c5bc1dd 100644 --- a/system/filesystem.py +++ b/system/filesystem.py @@ -140,7 +140,7 @@ def main(): rc,raw_fs,err = module.run_command("%s -c /dev/null -o value -s TYPE %s" % (cmd, dev)) fs = raw_fs.strip() - if fs == fstype and resizefs == False: + if fs == fstype and resizefs == False and not force: module.exit_json(changed=False) elif fs == fstype and resizefs == True: cmd = module.get_bin_path(growcmd, required=True)