Skip to content

Commit

Permalink
T6786: TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
kumvijaya authored Oct 26, 2024
1 parent 96697bf commit e5fa3e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/vyos/utils/assertion.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library. If not, see <http://www.gnu.org/licenses/>.

import json

def assert_boolean(b):
if int(b) not in (0, 1):
raise ValueError(f'Value {b} out of range')
Expand Down

0 comments on commit e5fa3e1

Please sign in to comment.