Rather than the existing code, we should be calling client.put. We also don't need to worry about saving and resetting the current terminus class, as that's no longer something that will impact how we're handling the connection logic.
We need to overwrite the save method defined in indirector/facts/rest.rb
Merged to master in https://github.com/puppetlabs/puppet/commit/6a694842e706a26770808baaa8ddc867c83fb27f
Passed CI in 4ccb0ec9d0