[node-patches] Change in ovirt-node[master]: ovirt-node-config:add disable kdump type configuration for k...
hadong0720 at gmail.com
hadong0720 at gmail.com
Tue Aug 12 09:28:55 UTC 2014
hadong has uploaded a new change for review.
Change subject: ovirt-node-config:add disable kdump type configuration for kdump class
......................................................................
ovirt-node-config:add disable kdump type configuration for kdump class
Change-Id: Ia5f0fd8b5f677248e4907e208c8cf962ca2ac457
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1129153
Signed-off-by: hadong <hadong at redhat.com>
---
M scripts/ovirt-auto-install.py
M src/ovirt/node/config/defaults.py
M src/ovirt/node/setup/core/kdump_page.py
3 files changed, 5 insertions(+), 5 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/85/31385/1
diff --git a/scripts/ovirt-auto-install.py b/scripts/ovirt-auto-install.py
index 5b1c930..3244404 100755
--- a/scripts/ovirt-auto-install.py
+++ b/scripts/ovirt-auto-install.py
@@ -178,7 +178,7 @@
elif "OVIRT_KDUMP_NFS" in OVIRT_VARS:
model.configure_nfs(OVIRT_VARS["OVIRT_KDUMP_NFS"])
elif "OVIRT_DISABLE_KDUMP" in OVIRT_VARS:
- model.disable_kdump()
+ model.configure_disable()
else:
model.configure_local()
diff --git a/src/ovirt/node/config/defaults.py b/src/ovirt/node/config/defaults.py
index 6225928..dc71487 100644
--- a/src/ovirt/node/config/defaults.py
+++ b/src/ovirt/node/config/defaults.py
@@ -1066,7 +1066,7 @@
def configure_local(self):
self.update(None, None, None, True)
- def disable_kdump(self):
+ def configure_disable(self):
self.update(None, None, None, None)
def retrieve(self):
diff --git a/src/ovirt/node/setup/core/kdump_page.py b/src/ovirt/node/setup/core/kdump_page.py
index c58aa96..c0fa7a5 100644
--- a/src/ovirt/node/setup/core/kdump_page.py
+++ b/src/ovirt/node/setup/core/kdump_page.py
@@ -173,7 +173,7 @@
elif ktype == "local":
model.configure_local()
else:
- model.disable_kdump()
+ model.configure_disable()
txs += model.transaction()
try:
@@ -190,7 +190,7 @@
with self.application.ui.suspended():
_original_sigint = signal.getsignal(signal.SIGINT)
signal.signal(signal.SIGINT, _handler)
- model.disable_kdump()
+ model.configure_disable()
txs = model.transaction()
txs()
console.reset()
@@ -212,7 +212,7 @@
elif saved_model["kdump.type"] == "local":
model.configure_local()
else:
- model.disable_kdump()
+ model.configure_disable()
self.logger.exception("Exception while configuring kdump")
self.application.show(self.ui_content())
return InfoDialog("dialog.info", "An error occurred", e.message)
--
To view, visit http://gerrit.ovirt.org/31385
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia5f0fd8b5f677248e4907e208c8cf962ca2ac457
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>
More information about the node-patches
mailing list