[PATCH imagefactory] Suggested patches to enable default network selection on RHEV

Vagner Farias vfarias at redhat.com
Mon Jan 28 22:12:40 UTC 2013


Ensuring the default "rhevm" network is set if packages are updated and aeolus-configure is not run again.

diff -uNr imagefactory-1.0.2/imgfac/builders/Fedora_rhevm_Builder.py imagefactory-1.0.2.network/imgfac/builders/Fedora_rhevm_Builder.py
--- imagefactory-1.0.2/imgfac/builders/Fedora_rhevm_Builder.py	2012-09-11 18:52:19.000000000 -0300
+++ imagefactory-1.0.2.network/imgfac/builders/Fedora_rhevm_Builder.py	2013-01-28 01:11:07.860078324 -0200
@@ -213,6 +213,9 @@
         if provider_data['target'] != 'rhevm':
             raise ImageFactoryException("Got a non-rhevm target in the vsphere builder.  This should never happen.")
 
+        # If network_name is not set, let's set it to the default rhevm
+        provider_data['network_name'] = provider_data.setdefault('network_name','rhevm')
+
         self.generic_decode_credentials(credentials, provider_data)
 
         # Deal with case where these are not set in the config file


--
Vagner Farias
vfarias at redhat.com


More information about the aeolus-devel mailing list