mirror of
https://github.com/docker/compose.git
synced 2025-07-27 07:34:10 +02:00
DescribeStacks fail with error if stack does not exists
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
5110cb6b85
commit
48096eeed8
@ -10,13 +10,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (c *client) ComposeUp(project *compose.Project, loadBalancerArn *string) error {
|
func (c *client) ComposeUp(project *compose.Project, loadBalancerArn *string) error {
|
||||||
stacks, err := c.CF.DescribeStacks(&cloudformation.DescribeStacksInput{
|
_, err := c.CF.DescribeStacks(&cloudformation.DescribeStacksInput{
|
||||||
StackName: aws.String(project.Name),
|
StackName: aws.String(project.Name),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err == nil {
|
||||||
return err
|
// FIXME no ErrNotFound err type here
|
||||||
}
|
|
||||||
if len(stacks.Stacks) > 0 {
|
|
||||||
return fmt.Errorf("we do not (yet) support updating an existing CloudFormation stack")
|
return fmt.Errorf("we do not (yet) support updating an existing CloudFormation stack")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user