Merge pull request #25973 from Fabian-Schmidt/provisioner_comment_fix

provisioner comment fix.
This commit is contained in:
Pam Selle 2020-08-28 09:46:13 -04:00 committed by GitHub
commit 29af42df81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -28,10 +28,9 @@ type ResourceProvisioner interface {
// are set and that the general structure is correct. // are set and that the general structure is correct.
Validate(*ResourceConfig) ([]string, []error) Validate(*ResourceConfig) ([]string, []error)
// Apply runs the provisioner on a specific resource and returns the new // Apply runs the provisioner on a specific resource and returns an error.
// resource state along with an error. Instead of a diff, the ResourceConfig // Instead of a diff, the ResourceConfig is provided since provisioners
// is provided since provisioners only run after a resource has been // only run after a resource has been newly created.
// newly created.
Apply(UIOutput, *InstanceState, *ResourceConfig) error Apply(UIOutput, *InstanceState, *ResourceConfig) error
// Stop is called when the provisioner should halt any in-flight actions. // Stop is called when the provisioner should halt any in-flight actions.