(2.9) Preserve disk basename on instance rename
authorKlaus Aehlig <aehlig@google.com>
Thu, 30 Jan 2014 11:46:03 +0000 (12:46 +0100)
committerDimitris Aragiorgis <dimara@grnet.gr>
Thu, 27 Mar 2014 08:01:04 +0000 (10:01 +0200)
commit82fba09ddfdd0753d5900ed878bf0af8688d4d78
treed88e57f4dca380a50d995eec105d605140388df2
parent4b12a08e02672824cb588a0d07679f6ba8bdfad1
(2.9) Preserve disk basename on instance rename

For file-based instances, upon rename, the directory containing
the instance disks is moved. Therefore, the basename needs to
be preserved in this case. Fix this. Note that so far, this
worked by accident as before 94e252a3 file names used to be
"disk" followed by the index.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
lib/config.py