[sheepdog] [PATCH 2/4] collie: don't show cluster creation time when collie fails to get it

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sun Sep 9 18:13:16 CEST 2012


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 collie/cluster.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/collie/cluster.c b/collie/cluster.c
index 01c112b..4226ce6 100644
--- a/collie/cluster.c
+++ b/collie/cluster.c
@@ -178,7 +178,7 @@ again:
 	else
 		printf("%s\n", sd_strerror(rsp->result));
 
-	if (!raw_output) {
+	if (!raw_output && rsp->data_length > 0) {
 		ct = logs[0].ctime >> 32;
 		printf("\nCluster created at %s\n", ctime(&ct));
 		printf("Epoch Time           Version\n");
-- 
1.7.2.5




More information about the sheepdog mailing list