yandex-qatools / teamcity-openstack-plugin

Teamcity plugin to add openstack integration
Other
25 stars 24 forks source link

Keep date creation of previous instances when profile is updated #50

Closed axel3rd closed 4 years ago

axel3rd commented 4 years ago

Instances removing when profile update was fixed in #2, and is working fine.

But when used, the previous instances has for date creation the date of profile update.

Due too:

https://github.com/yandex-qatools/teamcity-openstack-plugin/blob/cfcc3cd95821cd2420713620d81ad77b57188ed4/cloud-openstack-server/src/main/java/jetbrains/buildServer/clouds/openstack/OpenstackCloudInstance.java#L69

A short fix as this.startDate = server.getCreated(); could perhaps be better (to test).