Package org.jenkinsci.plugins.vsphere
Class DuplicateCloudNameFixer
java.lang.Object
org.jenkinsci.plugins.vsphere.DuplicateCloudNameFixer
Startup sanity check: Jenkins identifies a
Cloud by its name, so two clouds sharing
one (as every vSphere cloud did historically, and as a hand-edited config.xml may again)
make URLs like /manage/cloud/<name>/ and "Save" on the second one act on the first. The
first cloud with a name keeps it; later vSphereClouds are renamed after their description.-
Method Summary
Modifier and TypeMethodDescriptionRenames everyvSphereCloudwhose name is empty or already taken by an earlier cloud, saves Jenkins if anything changed and raises an administrative notice.static void
-
Method Details
-
fixAtStartup
- Throws:
IOException
-
fix
Renames everyvSphereCloudwhose name is empty or already taken by an earlier cloud, saves Jenkins if anything changed and raises an administrative notice.- Returns:
- one human-readable line per rename performed
- Throws:
IOException
-