File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ var connectCmd = &cobra.Command{
74
74
if action == "delete" {
75
75
if role != nil && role .Credentials != nil {
76
76
role .Credentials .DeleteCache (role .SessionName , role .CacheKey ())
77
+ role = nil
77
78
}
78
79
continue
79
80
}
Original file line number Diff line number Diff line change @@ -43,13 +43,12 @@ func toggleView() {
43
43
}
44
44
45
45
func goBack (role * * credentials.Role ) {
46
- if role == nil && lastUsed {
47
- * role = nil
46
+ if lastUsed {
48
47
lastUsed = false
49
- return
50
48
}
51
- if role != nil {
49
+ if * role != nil {
52
50
* role = nil
51
+ roleName = ""
53
52
return
54
53
}
55
54
if instanceId != "" {
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ var selectCmd = &cobra.Command{
31
31
if action == "delete" {
32
32
if role != nil && role .Credentials != nil {
33
33
role .Credentials .DeleteCache (role .SessionName , role .CacheKey ())
34
+ role = nil
34
35
}
35
36
continue
36
37
}
Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ var syncCmd = &cobra.Command{
223
223
if action == "delete" {
224
224
if role != nil && role .Credentials != nil {
225
225
role .Credentials .DeleteCache (role .SessionName , role .CacheKey ())
226
+ role = nil
226
227
}
227
228
continue
228
229
}
You can’t perform that action at this time.
0 commit comments