~ubuntu-branches/ubuntu/trusty/ceph/trusty-updates

« back to all changes in this revision

Viewing changes to src/pybind/ceph_argparse.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-04-09 11:14:03 UTC
  • mfrom: (1.1.33)
  • Revision ID: package-import@ubuntu.com-20140409111403-jlql95pa8kg1nk9a
Tags: 0.79-0ubuntu1
* New upstream release (LP: #1278466):
  - d/p/modules.patch: Refreshed.
  - d/ceph.install: Install all jerasure modules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1061
1061
                ret, outbuf, outs = cluster.mon_command(cmd, inbuf, timeout)
1062
1062
            else:
1063
1063
                ret, outbuf, outs = cluster.mon_command(cmd, inbuf, timeout, target[1])
 
1064
        else:
 
1065
            raise ArgumentValid("Bad target type '{0}'".format(target[0]))
1064
1066
 
1065
1067
    except Exception as e:
1066
 
        raise RuntimeError('"{0}": exception {1}'.format(cmd, e))
 
1068
        if not isinstance(e, ArgumentError):
 
1069
            raise RuntimeError('"{0}": exception {1}'.format(cmd, e))
 
1070
        else:
 
1071
            raise
1067
1072
 
1068
1073
    return ret, outbuf, outs
1069
1074
 
1103
1108
                                         inbuf, timeout, verbose)
1104
1109
 
1105
1110
    except Exception as e:
1106
 
        raise RuntimeError('"{0}": exception {1}'.format(prefix, e))
 
1111
        if not isinstance(e, ArgumentError):
 
1112
            raise RuntimeError('"{0}": exception {1}'.format(cmd, e))
 
1113
        else:
 
1114
            raise
1107
1115
 
1108
1116
    return ret, outbuf, outs
1109
1117