File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
13
13
type hop struct {
14
14
Profile string
15
15
Account string
16
+ Region string
16
17
Role string
17
18
Mfa bool
18
19
}
@@ -130,7 +131,7 @@ func (v *voyage) loadCreds(i Itinerary) error {
130
131
}
131
132
}
132
133
c , err = a .ExecuteWithCreds (c )
133
- c .Region = thisHop .Account . Region
134
+ c .Region = thisHop .Region
134
135
if err != nil {
135
136
return err
136
137
}
@@ -140,7 +141,15 @@ func (v *voyage) loadCreds(i Itinerary) error {
140
141
}
141
142
142
143
func parseHops (stack * []hop , cp cartogram.Pack , a cartogram.Account , r string ) error {
143
- * stack = append (* stack , hop {Account : a .Account , Role : r , Mfa : a .Roles [r ].Mfa })
144
+ * stack = append (
145
+ * stack ,
146
+ hop {
147
+ Account : a .Account ,
148
+ Region : a .Region ,
149
+ Role : r ,
150
+ Mfa : a .Roles [r ].Mfa ,
151
+ },
152
+ )
144
153
accountMatch := cartogram .AccountRegex .FindStringSubmatch (a .Source )
145
154
if len (accountMatch ) != 4 {
146
155
* stack = append (* stack , hop {Profile : a .Source })
You can’t perform that action at this time.
0 commit comments