Miscellaneous » zfs-replicate
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Replace dead assertion with something that at least functions

Bugzid:2130456

Changeset ddfb26309aa4

Parent 84552b33e89d

by Profile picture of User 912Tim Stewart <tim@fogcreek.com>

Changes to one file · Browse files at ddfb26309aa4 Showing diff from parent 84552b33e89d Diff from another changeset...

Change 1 of 1 Show Entire File zfs-replicate Stacked
 
124
125
126
127
 
 
128
129
130
 
124
125
126
 
127
128
129
130
131
@@ -124,7 +124,8 @@
  dsets = Zfs._datasets('all', '^%s$' % (name), cmd_prefix)   if not dsets:   raise NoSuchDatasetError - assert(len(dsets) == 1) + if len(dsets) > 1: + raise Exception("Unexpected logic bug")     @property   def name(self):