Revision c7ed0950
ID | c7ed0950b1de35b028090fe6e557b249c4e85826 |
Parent | c6076a17 |
Child | f918be95 |
Fix VM ID parsing in `associate_address()`
The current code in `ElasticIP::associate_address()` strips the leading `i-` prefix of VM instance IDs, if found, in order to convert EC2 instance IDs into OpenNebula VM IDs. Unfortunately that does not work for IDs greater than 7, since the stripped string is interpreted as an octal number due to the remaining leading 0's:
$ econe-allocate-address
$ econe-describe-addresses
publicIp instanceId
192.168.1.
$ econe-associate-address 192.168.1.1 i-00000106
$ econe-describe-addresses
publicIp instanceId
192.168.1. i-00000070
(Note that decimal 106 is octal 70)
Files
- added
- modified
- copied
- renamed
- deleted