Skip to content

Commit f4538d0

Browse files
committed
fix #327 for realz
1 parent eea7abe commit f4538d0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cli/app.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func NewApp() *cli.App {
4444
if err != nil {
4545
return err
4646
}
47+
log.Debugf("version:%v", common.GetVersion())
4748

4849
// TODO: support initializing context from other cloud providers?
4950
log.Debugf("dryrun:%v path:%v", c.Bool("dryrun"), c.String("dryrun-output"))

provider/aws/cloudformation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ func (cfnMgr *cloudformationStackManager) ListStacks(stackType common.StackType,
415415
}
416416

417417
stack := buildStack(stackDetails)
418-
stackNamespace := strings.Split(stack.Name, "-")[0]
418+
expectedStackPrefix := fmt.Sprintf("%s-%s", namespace, stackType)
419419

420-
if stack.Tags["type"] == string(stackType) && stackNamespace == namespace {
420+
if stack.Tags["type"] == string(stackType) && strings.HasPrefix(stack.Name, expectedStackPrefix) {
421421
stacks = append(stacks, stack)
422422
}
423423
}

0 commit comments

Comments
 (0)