Re: [Freeipa-devel] [PATCH] 0035 Improve ipa-replica-manage list

2010-12-21 Thread Simo Sorce
On Tue, 21 Dec 2010 15:48:40 +0100
Jakub Hrozek  wrote:

> Ack, but only if you squash in the attached one-liner which actually
> makes ipa-replica-manage list work with --verbose. Right now it would
> fail with "unexpected error: utcoffset() takes exactly 1 argument (2
> given)"
> 

Thanks, I had noticed and then forgotten this error.

I squashed in your fix and pushed to master.
Simo.

-- 
Simo Sorce * Red Hat, Inc * New York

___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel


Re: [Freeipa-devel] [PATCH] 0035 Improve ipa-replica-manage list

2010-12-21 Thread Jakub Hrozek
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/16/2010 02:09 AM, Simo Sorce wrote:
> 
> With the previous incarnation it wasn't possible to get a list of all
> replicas, only of the replicas directly connected to the one on which
> the command was run.
> This new version will return all known replicas (as per entries under
> cn=master,cn=ipa,cn=etc,$SUFFIX).
> If a server name is passed as an argument then the specific replica is
> queried to get the list of servers it is directly connected to.
> This is so that topology can be easily discovered from a single
> machine. 
> 
> Simo.
> 

Ack, but only if you squash in the attached one-liner which actually
makes ipa-replica-manage list work with --verbose. Right now it would
fail with "unexpected error: utcoffset() takes exactly 1 argument (2 given)"


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk0QvkgACgkQHsardTLnvCW71ACghNc+Kox+wNjJRjH3S9kkKt9A
nUsAoJ5hmrGk9luTDV9HKa6bGZceUmNU
=E4Nk
-END PGP SIGNATURE-
From 7a5335cf8ab676619be6bc75a2dbb4fdca55f1e6 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek 
Date: Tue, 21 Dec 2010 15:44:44 +0100
Subject: [PATCH] fix GeneralizedTimeZone.utcoffset()

---
 ipapython/ipautil.py |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py
index 06495f4..77c838e 100644
--- a/ipapython/ipautil.py
+++ b/ipapython/ipautil.py
@@ -346,7 +346,7 @@ class GeneralizedTimeZone(datetime.tzinfo):
 if self.houroffset < 0:
 self.minoffset *= -1
 
-def utcoffset(self):
+def utcoffset(self, dt):
 return datetime.timedelta(hours=self.houroffset, minutes=self.minoffset)
 
 def dst(self):
-- 
1.7.3.3



0001-fix-GeneralizedTimeZone.utcoffset.patch.sig
Description: PGP signature
___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel