Hi,
As I made the miss/error I correct it :
So, unverified typos also corrected in the attached patch.
again sorry of this first but unperfect patch (it was even disturbing the
good behavior). ;)
regards,
Greg.
2010/7/11 Gerhard Lausser <[email protected]>
> Hi,
>
> $ grep launched *.py
> daemon.py: #Check if previous run are still launched by reading the
> pidfile
> schedulingitem.py: #eventhandler is launched each time
> during the soft state
> worker.py: if action.status == 'launched' and action.last_poll <
> now - action.wait_time:
>
> $ grep lanched *.py
> action.py: self.status = 'lanched'
> action.py: self.status = 'lanched'
> check.py:# self.status = 'lanched'
> check.py:# self.status = 'lanched'
> eventhandler.py:# self.status = 'lanched'
> notification.py:# self.status = 'lanched'
>
> The "typo" is everywhere. Shouldn't this patch be applied to all these
> files?
>
> Gerhard
>
>
> > -----Ursprüngliche Nachricht-----
> > Von: Grégory Starck [mailto:[email protected]]
> > Gesendet: Freitag, 9. Juli 2010 13:50
> > An: [email protected]
> > Betreff: [Shinken-devel] typo error in worker.py
> >
> > hi guys,
> >
> > I've submitted a patch to correct a simple typo.
> >
> > regards,
> >
> > Grégory.
> >
> >
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Shinken-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>
From 883f5fc70f09e9b513e329fb8e32198a13858a61 Mon Sep 17 00:00:00 2001
From: Gregory Starck <[email protected]>
Date: Sun, 11 Jul 2010 15:11:46 +0200
Subject: [PATCH] typo everywhere: 'lanched' -> 'launched'
---
src/action.py | 4 ++--
src/check.py | 4 ++--
src/eventhandler.py | 2 +-
src/notification.py | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/action.py b/src/action.py
index 8f4e6b9..2190cf9 100644
--- a/src/action.py
+++ b/src/action.py
@@ -64,7 +64,7 @@ class Action:
def execute_windows(self):
#self.timeout = 20
- self.status = 'lanched'
+ self.status = 'launched'
self.check_time = time.time()
self.wait_time = 0.0001
self.last_poll = self.check_time
@@ -78,7 +78,7 @@ class Action:
def execute_unix(self):
- self.status = 'lanched'
+ self.status = 'launched'
self.check_time = time.time()
self.last_poll = self.check_time
self.wait_time = 0.0001
diff --git a/src/check.py b/src/check.py
index ad0ad5a..72f5f52 100644
--- a/src/check.py
+++ b/src/check.py
@@ -131,7 +131,7 @@ class Check(Action):
# """call shell-command and either return its output or kill it
# if it doesn't normally exit within timeout seconds and return None"""
# timeout = 5
-# self.status = 'lanched'
+# self.status = 'launched'
# self.check_time = time.time()
# start = datetime.datetime.now()
# try:
@@ -160,7 +160,7 @@ class Check(Action):
# def execute_unix(self):
# #print "Launching command", self.command
# child = spawn ('/bin/sh -c "%s"' % self.command)
-# self.status = 'lanched'
+# self.status = 'launched'
# self.check_time = time.time()
#
# try:
diff --git a/src/eventhandler.py b/src/eventhandler.py
index 5f0d7fe..3b6607c 100644
--- a/src/eventhandler.py
+++ b/src/eventhandler.py
@@ -108,7 +108,7 @@ class EventHandler(Action):
# def execute(self):
# print "Launching EVENT HANDLER command", self.command
# child = spawn ('/bin/sh -c "%s"' % self.command)
-# self.status = 'lanched'
+# self.status = 'launched'
# self.check_time = time.time()
#
# try:
diff --git a/src/notification.py b/src/notification.py
index 4b9395a..52aa728 100644
--- a/src/notification.py
+++ b/src/notification.py
@@ -125,7 +125,7 @@ class Notification(Action):
# def execute(self):
# print "Notification %s" % self.command
# child = spawn ('/bin/sh -c "%s"' % self.command)
-# self.status = 'lanched'
+# self.status = 'launched'
#
# try:
# child.expect_exact(EOF, timeout=5)
--
1.7.0.4
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Shinken-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shinken-devel