fence-agents: RHEL6 - fence_scsi: Fix on_target attibute in metadata

rohara rohara at fedoraproject.org
Thu Dec 20 17:56:24 UTC 2012


Gitweb:        http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=e0b9090cac46a1010f7b57f7aef9412753a312b6
Commit:        e0b9090cac46a1010f7b57f7aef9412753a312b6
Parent:        069a3de2ff46c8c43aad437cd636049c91e14737
Author:        Ryan O'Hara <rohara at redhat.com>
AuthorDate:    Thu Dec 20 11:55:30 2012 -0600
Committer:     Ryan O'Hara <rohara at redhat.com>
CommitterDate: Thu Dec 20 11:55:30 2012 -0600

fence_scsi: Fix on_target attibute in metadata

The "on_target" attribute should be associated with the on action,
not the metadata action.

Signed-off-by: Ryan O'Hara <rohara at redhat.com>
---
 fence/agents/scsi/fence_scsi.pl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fence/agents/scsi/fence_scsi.pl b/fence/agents/scsi/fence_scsi.pl
index 60923f2..45cfe22 100644
--- a/fence/agents/scsi/fence_scsi.pl
+++ b/fence/agents/scsi/fence_scsi.pl
@@ -746,10 +746,10 @@ sub print_metadata ()
     print "\t</parameter>\n";
     print "</parameters>\n";
     print "<actions>\n";
-    print "\t<action name=\"on\"/>\n";
+    print "\t<action name=\"on\" on_target=\"1\"/>\n";
     print "\t<action name=\"off\"/>\n";
     print "\t<action name=\"status\"/>\n";
-    print "\t<action name=\"metadata\" on_target=\"1\"/>\n";
+    print "\t<action name=\"metadata\"/>\n";
     print "</actions>\n";
     print "</resource-agent>\n";
 


More information about the cluster-commits mailing list