[icinga-checkins] icinga.org: icinga-api/master: * Data field in commands is always hidden and 1 per default

git at icinga.org git at icinga.org
Thu Sep 9 14:56:28 CEST 2010


Module: icinga-api
Branch: master
Commit: d255cf73ca9041afcf3c62415b00fe4c9ccfe5a2
URL:    https://git.icinga.org/?p=icinga-api.git;a=commit;h=d255cf73ca9041afcf3c62415b00fe4c9ccfe5a2

Author: jmosshammer <jmosshammer at ws-jmosshammer.(none)>
Date:   Thu Sep  9 14:56:52 2010 +0200

* Data field in commands is always hidden and 1 per default

---

 objects/command/IcingaApiCommandCollection.php |    3 ++-
 objects/command/IcingaApiCommandSendPipe.php   |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/objects/command/IcingaApiCommandCollection.php b/objects/command/IcingaApiCommandCollection.php
index 4237c3d..df5c1f2 100644
--- a/objects/command/IcingaApiCommandCollection.php
+++ b/objects/command/IcingaApiCommandCollection.php
@@ -180,7 +180,8 @@ class IcingaApiCommandCollection
 			'required'	=> false
 		),
 		self::COMMAND_DATA => array(
-			'type'	=> 'textarea',
+			'type'	=> 'hidden',
+			'defaultValue' => 1,
 			'required'	=> false
 		),
 		self::COMMAND_NOTIFICATION_OPTIONS => array (
diff --git a/objects/command/IcingaApiCommandSendPipe.php b/objects/command/IcingaApiCommandSendPipe.php
index adf39b9..5bf7016 100644
--- a/objects/command/IcingaApiCommandSendPipe.php
+++ b/objects/command/IcingaApiCommandSendPipe.php
@@ -62,7 +62,7 @@ class IcingaApiCommandSendPipe
 			if ($pipe) {
 				
 				$commands = $this->getCommandLineStrings();
-				
+				icingaApiDebugger::logDebug("Sending to commandpipe  :".$commands);
 				$commandLength = strlen($commands);
 				$sizeWritten = fwrite($pipe, $commands, $commandLength);
 				





More information about the icinga-checkins mailing list