adding inputs output struct based on argo naming for now
This commit is contained in:
		@@ -55,14 +55,14 @@ type DataInstance struct {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
func (ri *DataInstance) StoreDraftDefault() {
 | 
					func (ri *DataInstance) StoreDraftDefault() {
 | 
				
			||||||
	found := false
 | 
						found := false
 | 
				
			||||||
	for _, p := range ri.ResourceInstance.Outputs {
 | 
						for _, p := range ri.ResourceInstance.Env {
 | 
				
			||||||
		if p.Attr == "source" {
 | 
							if p.Attr == "source" {
 | 
				
			||||||
			found = true
 | 
								found = true
 | 
				
			||||||
			break
 | 
								break
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if !found {
 | 
						if !found {
 | 
				
			||||||
		ri.ResourceInstance.Outputs = append(ri.ResourceInstance.Outputs, models.Param{
 | 
							ri.ResourceInstance.Env = append(ri.ResourceInstance.Env, models.Param{
 | 
				
			||||||
			Attr:     "source",
 | 
								Attr:     "source",
 | 
				
			||||||
			Value:    ri.Source,
 | 
								Value:    ri.Source,
 | 
				
			||||||
			Readonly: true,
 | 
								Readonly: true,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -55,14 +55,14 @@ type StorageResourceInstance struct {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
func (ri *StorageResourceInstance) StoreDraftDefault() {
 | 
					func (ri *StorageResourceInstance) StoreDraftDefault() {
 | 
				
			||||||
	found := false
 | 
						found := false
 | 
				
			||||||
	for _, p := range ri.ResourceInstance.Outputs {
 | 
						for _, p := range ri.ResourceInstance.Env {
 | 
				
			||||||
		if p.Attr == "source" {
 | 
							if p.Attr == "source" {
 | 
				
			||||||
			found = true
 | 
								found = true
 | 
				
			||||||
			break
 | 
								break
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if !found {
 | 
						if !found {
 | 
				
			||||||
		ri.ResourceInstance.Outputs = append(ri.ResourceInstance.Outputs, models.Param{
 | 
							ri.ResourceInstance.Env = append(ri.ResourceInstance.Env, models.Param{
 | 
				
			||||||
			Attr:     "source",
 | 
								Attr:     "source",
 | 
				
			||||||
			Value:    ri.Source,
 | 
								Value:    ri.Source,
 | 
				
			||||||
			Readonly: true,
 | 
								Readonly: true,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user