Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openstack/orchestration/v1/stacktemplates/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ type ValidateOptsBuilder interface {

// ValidateOpts specifies the template validation parameters.
type ValidateOpts struct {
Template map[string]interface{}
Template string
TemplateURL string
}

// ToStackTemplateValidateMap assembles a request body based on the contents of a ValidateOpts.
func (opts ValidateOpts) ToStackTemplateValidateMap() (map[string]interface{}, error) {
vo := make(map[string]interface{})
if opts.Template != nil {
if opts.Template != "" {
vo["template"] = opts.Template
return vo, nil
}
Expand Down