diff --git a/lib/metadata/MIQExtract/MIQExtract.rb b/lib/metadata/MIQExtract/MIQExtract.rb
index <HASH>..<HASH> 100644
--- a/lib/metadata/MIQExtract/MIQExtract.rb
+++ b/lib/metadata/MIQExtract/MIQExtract.rb
@@ -26,7 +26,7 @@ class MIQExtract
   def initialize(filename, ost = nil) # TODO: Always pass in MiqVm
     ost ||= OpenStruct.new
     @ost = ost
-    @dataDir = ost.config ? ost.config.dataDir : nil
+    @dataDir = ost.config.try(:dataDir)
     ost.scanData = {} if ost.scanData.nil?
     @xml_class = ost.xml_class.nil? ? XmlHash::Document : ost.xml_class
Refactor " : nil" used in ternary operators

Add removed whitespace

Revert refactor

Revert refactor

Revert refactor

(transferred from ManageIQ/manageiq-gems-pending@7a<I>b<I>de<I>c7bc3e<I>cef<I>dbbea9ce<I>a<I>d)