Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
Don't validate domain state changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkin committed Jul 4, 2017
1 parent 6626dd7 commit d7bbb23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qubesdbus/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ def Set(self, interface, name,
if name == 'state':
cur_state = self.properties[name]
state = value
if not valid_state_change(cur_state, state):
msg = "State can't change from %s to %s" % (cur_state, state)
raise ValidationException(msg)
# Uncomment validation for more stability
# if not valid_state_change(cur_state, state):
# msg = "State can't change from %s to %s" % (cur_state, state)
# raise ValidationException(msg)
super().Set(interface, name, value)

@dbus.service.method("org.qubes.Domain", out_signature="b")
Expand Down

0 comments on commit d7bbb23

Please sign in to comment.