[PATCH oz] Silencing the curl command executed on the guest.

Chris Alfonso calfonso at redhat.com
Thu Dec 15 14:42:12 UTC 2011


Added --silent to the guest curl command.  We already print a nice
debug statement if we need to set up a tunnel from the guest.  The
curl error code was getting logged and would be somewhat alarming to
the an administrator if they didn't have context into how we are determining
network connectivity.  The curl error is a non-exception case, and thus doesn't
need to be logged.
---
 oz/RedHat.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/oz/RedHat.py b/oz/RedHat.py
index 25319b4..ef793d9 100644
--- a/oz/RedHat.py
+++ b/oz/RedHat.py
@@ -914,7 +914,7 @@ class RedHatCDYumGuest(RedHatCDGuest):
         # now check if we can access it remotely
         try:
             self.guest_execute_command(guestaddr,
-                                       "curl %s %s" % (curlargs, full_url))
+                                       "curl --silent %s %s" % (curlargs, full_url))
             # if we reach here, then the perform succeeded, which means we
             # could reach the repo from the guest
             guest = True
-- 
1.7.6.4




More information about the aeolus-devel mailing list