summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-05-12 14:27:06 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-05-12 14:27:06 -0400
commitaaf52ab85b518d8c6b4ed0211b69d6be531ae5a9 (patch)
treea7375f8be06af0faa3eeb3958f05578180ba8dbf /cobbler
parentbdcdc5b244ea5deb35ff92787e1fb4068968d9dd (diff)
downloadthird_party-cobbler-aaf52ab85b518d8c6b4ed0211b69d6be531ae5a9.tar.gz
third_party-cobbler-aaf52ab85b518d8c6b4ed0211b69d6be531ae5a9.tar.xz
third_party-cobbler-aaf52ab85b518d8c6b4ed0211b69d6be531ae5a9.zip
Patch for replicate error handling + docs
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/action_replicate.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cobbler/action_replicate.py b/cobbler/action_replicate.py
index 139f18f..ae3adc8 100644
--- a/cobbler/action_replicate.py
+++ b/cobbler/action_replicate.py
@@ -17,6 +17,7 @@ import os
import os.path
import xmlrpclib
import api as cobbler_api
+from utils import _
class Replicate:
def __init__(self,config):
@@ -150,7 +151,8 @@ class Replicate:
self.uri = 'http://%s/cobbler_api' % cobbler_master
elif len(self.settings.cobbler_master) > 0:
self.uri = 'http://%s/cobbler_api' % self.settings.cobbler_master
-
+ else:
+ print _('No cobbler master found to replicate from, try --master.')
if self.uri is not None:
self.remote = xmlrpclib.Server(self.uri)
self.sync_distros()