Merge pull request #566 from cloudnull/lxc-babyjson
lxc_container: remove BabyJSON
This commit is contained in:
commit
5e2625630c
1 changed files with 6 additions and 3 deletions
|
@ -383,9 +383,7 @@ EXAMPLES = """
|
|||
try:
|
||||
import lxc
|
||||
except ImportError:
|
||||
msg = 'The lxc module is not importable. Check the requirements.'
|
||||
print("failed=True msg='%s'" % msg)
|
||||
raise SystemExit(msg)
|
||||
HAS_LXC = False
|
||||
|
||||
|
||||
# LXC_COMPRESSION_MAP is a map of available compression types when creating
|
||||
|
@ -1706,6 +1704,11 @@ def main():
|
|||
supports_check_mode=False,
|
||||
)
|
||||
|
||||
if not HAS_LXC:
|
||||
module.fail_json(
|
||||
msg='The `lxc` module is not importable. Check the requirements.'
|
||||
)
|
||||
|
||||
lv_name = module.params.get('lv_name')
|
||||
if not lv_name:
|
||||
module.params['lv_name'] = module.params.get('name')
|
||||
|
|
Loading…
Reference in a new issue