It is no longer “--enable-remote-commands”, but rather
“--enable-restricted-commands”.
---
 Makefile.am      |    2 +-
 configure.ac     |   14 +++++++-------
 lib/backend.py   |    2 +-
 lib/constants.py |    2 +-
 4 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index e44335b..f76de47 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1266,7 +1266,7 @@ lib/_autoconf.py: Makefile | stamp-directories
          echo "ENABLE_CONFD = $(ENABLE_CONFD)"; \
          echo "XEN_CMD = '$(XEN_CMD)'"; \
          echo "ENABLE_SPLIT_QUERY = $(ENABLE_SPLIT_QUERY)"; \
-         echo "ENABLE_REMOTE_COMMANDS = $(ENABLE_REMOTE_COMMANDS)"; \
+         echo "ENABLE_RESTRICTED_COMMANDS = $(ENABLE_RESTRICTED_COMMANDS)"; \
        } > $@
 
 lib/_vcsversion.py: Makefile vcs-version | stamp-directories
diff --git a/configure.ac b/configure.ac
index f3a3e95..8c77c1c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -311,18 +311,18 @@ then
 fi
 AC_SUBST(SYSLOG_USAGE, $SYSLOG)
 
-AC_ARG_ENABLE([remote-commands],
-  [AS_HELP_STRING([--enable-remote-commands],
-                  m4_normalize([enable remote commands in the node daemon
+AC_ARG_ENABLE([restricted-commands],
+  [AS_HELP_STRING([--enable-restricted-commands],
+                  m4_normalize([enable restricted commands in the node daemon
                                 (default: disabled)]))],
   [[if test "$enableval" = no; then
-      enable_remote_commands=False
+      enable_restricted_commands=False
     else
-      enable_remote_commands=True
+      enable_restricted_commands=True
     fi
   ]],
-  [enable_remote_commands=False])
-AC_SUBST(ENABLE_REMOTE_COMMANDS, $enable_remote_commands)
+  [enable_restricted_commands=False])
+AC_SUBST(ENABLE_RESTRICTED_COMMANDS, $enable_restricted_commands)
 
 # --with-disk-separator=...
 AC_ARG_WITH([disk-separator],
diff --git a/lib/backend.py b/lib/backend.py
index 1971189..d0e39cc 100644
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -3712,7 +3712,7 @@ def RunRemoteCommand(cmd,
                      _sleep_fn=time.sleep,
                      _prepare_fn=_PrepareRemoteCommand,
                      _runcmd_fn=utils.RunCmd,
-                     _enabled=constants.ENABLE_REMOTE_COMMANDS):
+                     _enabled=constants.ENABLE_RESTRICTED_COMMANDS):
   """Executes a remote command after performing strict tests.
 
   @type cmd: string
diff --git a/lib/constants.py b/lib/constants.py
index 5f2b24a..4654f14 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -140,7 +140,7 @@ ENABLE_FILE_STORAGE = _autoconf.ENABLE_FILE_STORAGE
 ENABLE_SHARED_FILE_STORAGE = _autoconf.ENABLE_SHARED_FILE_STORAGE
 ENABLE_CONFD = _autoconf.ENABLE_CONFD
 ENABLE_SPLIT_QUERY = _autoconf.ENABLE_SPLIT_QUERY
-ENABLE_REMOTE_COMMANDS = _autoconf.ENABLE_REMOTE_COMMANDS
+ENABLE_RESTRICTED_COMMANDS = _autoconf.ENABLE_RESTRICTED_COMMANDS
 
 NODED = "ganeti-noded"
 CONFD = "ganeti-confd"
-- 
1.7.7.3

Reply via email to