Skip to content

Conversation

@abhinavdahiya
Copy link
Contributor

https://github.com/AlecAivazis/survey/blob/f30c5d1830c892f533140f29a1de89141dc217f5/survey.go#L88-L95

func AskOne(p Prompt, response interface{}, v Validator, opts ...AskOpt) error {
	err := Ask([]*Question{{Prompt: p, Validate: v}}, response, opts...)
	if err != nil {
		return err
	}

	return nil
}

AskOne was not passing Transform. This would cause error reading region for aws

FATA[0023] failed to generate asset: failed to generate asset "Machine API Operator": failed to lookup
           RHCOS AMI: InvalidEndpointURL: invalid endpoint uri
caused by: parse https://ec2.us-east-1 (N. Virginia).amazonaws.com/: invalid character " " in host name

/cc @wking

https://github.com/AlecAivazis/survey/blob/f30c5d1830c892f533140f29a1de89141dc217f5/survey.go#L88-L95
```go
func AskOne(p Prompt, response interface{}, v Validator, opts ...AskOpt) error {
	err := Ask([]*Question{{Prompt: p, Validate: v}}, response, opts...)
	if err != nil {
		return err
	}

	return nil
}
```
AskOne was not passing Transform. This would cause error reading region for aws
```console
FATA[0023] failed to generate asset: failed to generate asset "Machine API Operator": failed to lookup
           RHCOS AMI: InvalidEndpointURL: invalid endpoint uri
caused by: parse https://ec2.us-east-1 (N. Virginia).amazonaws.com/: invalid character " " in host name
```
@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 29, 2018
@wking
Copy link
Member

wking commented Sep 29, 2018

/lgtm

Cross linking the previous Tranfsorm discussion.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 29, 2018
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [abhinavdahiya,wking]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@wking
Copy link
Member

wking commented Sep 29, 2018

/hold

Wait on #379.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 29, 2018
@wking
Copy link
Member

wking commented Sep 29, 2018

#379 merged

/hold cancel
/retest

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 29, 2018
@openshift-merge-robot openshift-merge-robot merged commit 8772274 into openshift:master Sep 29, 2018
@abhinavdahiya abhinavdahiya deleted the fix_transform branch September 29, 2018 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants