From 91eb4a034e5bba147d337fabc5e17f6a85fbb17c Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Sun, 27 May 2018 10:49:52 +0530 Subject: [PATCH] Use get_option instead of _options.get API Signed-off-by: Abhijeet Kasurde --- lib/ansible/plugins/inventory/virtualbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/inventory/virtualbox.py b/lib/ansible/plugins/inventory/virtualbox.py index 9ec1aedfa6..08bbf96337 100644 --- a/lib/ansible/plugins/inventory/virtualbox.py +++ b/lib/ansible/plugins/inventory/virtualbox.py @@ -82,7 +82,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable): for varname in query: hostvars[host][varname] = self._query_vbox_data(host, query[varname]) - strict = self._options.get('strict', False) + strict = self.get_option('strict') # create composite vars self._set_composite_vars(self.get_option('compose'), hostvars[host], host, strict=strict) @@ -223,7 +223,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable): source_data = None if cache: - cache = self._options.get('cache') + cache = self.get_option('cache') update_cache = False if cache: