def _get_resource(self, resource_uri):
        session = self._get_wsman_session()
        try:
            return session.Get(resource_uri)
        except pywintypes.com_error as ex:
            if len(ex.excepinfo) > 5 and ex.excepinfo[5] == -2144108544:
                return None
            else:
                raise
dataset/ETHPy150Open openstack/cloudbase-init/cloudbaseinit/utils/windows/winrmconfig.py/WinRMConfig._get_resource/original