(#9837) Call puppet apply to avoid deprecation warning
If you edit the resource it's immediately applied after exiting the
editor, but it was applied with old syntax that resulted in the deprecation
warning:
warning: Implicit invocation of 'puppet apply' by passing files (or flags) directly to 'puppet' is deprecated, and will be removed in the 2.8 series. Please invoke 'puppet apply' directly in the future.