'Parse the WMI packages output.'

def Parse(self, query, result, knowledge_base):

    _ = (query, knowledge_base)
    status = rdf_client.SoftwarePackage.InstallState.INSTALLED
    result = result.ToDict()
    installed_on = time_utils.AmericanDateToEpoch(result.get('InstalledOn', ''))
    soft = rdf_client.SoftwarePackage(name=result.get('HotFixID'), description=result.get('Caption'), installed_by=result.get('InstalledBy'), install_state=status, installed_on=installed_on)
    (yield soft)
