s4-s3-upgrade Improve samba-tool domain samba3upgrade behaviour
[samba.git] / source4 / scripting / python / samba / getopt.py
index 0ab1e9e46f1162770b5b409fbcf6df15de504d60..01e9f87e7654b99fb6b0547c4c3aed599626da7d 100644 (file)
@@ -53,6 +53,7 @@ class SambaOptions(optparse.OptionGroup):
                         callback=self._set_realm)
         self._configfile = None
         self._lp = LoadParm()
+        self.realm = None
 
     def get_loadparm_path(self):
         """Return path to the smb.conf file specified on the command line."""
@@ -66,6 +67,7 @@ class SambaOptions(optparse.OptionGroup):
 
     def _set_realm(self, option, opt_str, arg, parser):
         self._lp.set('realm', arg)
+        self.realm = arg
 
     def _set_option(self, option, opt_str, arg, parser):
         if arg.find('=') == -1: