mirror of https://github.com/docker/compose.git
more concise validation
Co-authored-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
parent
ec5f4e9202
commit
6ff20cf104
|
@ -14,8 +14,7 @@ func AzureLoginCommand() *cobra.Command {
|
||||||
Short: "Log in to azure",
|
Short: "Log in to azure",
|
||||||
Args: cobra.MaximumNArgs(0),
|
Args: cobra.MaximumNArgs(0),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
err := opts.Validate()
|
if err := opts.Validate(); err != nil {
|
||||||
if err != nil {
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return cloudLogin(cmd, "aci", opts)
|
return cloudLogin(cmd, "aci", opts)
|
||||||
|
|
Loading…
Reference in New Issue