diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-07-14 15:36:47 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-07-14 15:36:47 +0000 |
commit | d69c351cd76447b5bfe5813a4adfecfd921cd949 (patch) | |
tree | df5374109c8c4af6d1ae8a08cbe912631dad25d1 /src/sbin | |
parent | 92605ca65fc46010f22d4903c9956ba97a3071b6 (diff) | |
download | bcfg2-d69c351cd76447b5bfe5813a4adfecfd921cd949.tar.gz bcfg2-d69c351cd76447b5bfe5813a4adfecfd921cd949.tar.bz2 bcfg2-d69c351cd76447b5bfe5813a4adfecfd921cd949.zip |
Cleanly handle profile assertion errors
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1939 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rwxr-xr-x | src/sbin/bcfg2 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index f88f41b29..33bef6147 100755 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -159,7 +159,10 @@ class Client: proxy = Bcfg2.Client.Proxy.bcfg2() if self.setup['profile']: - proxy.AssertProfile(self.setup['profile']) + try: + proxy.AssertProfile(self.setup['profile']) + except xmlrpclib.Fault: + self.fatal_error("Failed to set client profile") try: probe_data = proxy.GetProbes() |