app/models/manageiq/providers/lenovo/physical_infra_manager/refresh_parser.rb
# returns the specific parser based on the version of the appliance
returns the specific parser based on the version of the appliance
returns the specific parser based on the version of the appliance
def init_parser(connection)
      aicc = connection.discover_aicc
      version = aicc.first.appliance['version'] if aicc.present? 
      self.class.parent::Parser.get_instance(version)
    end
def init_parser ( connection ) aicc = connection . discover_aicc version = aicc . first . appliance [ 'version' ] if aicc . present? self . class . parent :: Parser . get_instance ( version ) end
returns the specific parser based on the version of the appliance
returns the specific parser based on the version of the appliance
# getting the appliance version
connection