-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the defer function in StartVM() to delete unassociated FloatingIP
- Loading branch information
1 parent
15e5bfc
commit 9bd1392
Showing
1 changed file
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9bd1392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@powerkimhub 변경하신 이유가 있으실까요? defer 함수에서 publicip 값이 변할 우려가 있지 않을까 해서 질문드립니다.
9bd1392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ish-hcc
[추가 설명]
publicIPStr
에 값을 잘 설정해주고 있습니다.publicIPStr
값과 관련 없이 local 변수로 새로 생성되어 전달이 안되고 항상 "" 이었습니다.publicIPStr
는 StartVM() 내에서 floating ip가 생성된 이후에는 항상 값이 유지 되니9bd1392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@powerkimhub 아 그렇군요 확인해주셔서 감사합니다! 참고하도록 하겠습니다