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

Commit

Permalink
Fix encoding string in domain, domain_manager & proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkin committed Jun 13, 2017
1 parent b7b5604 commit cc28fa2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qubesdbus/domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf8 -*-
# -*- encoding: utf-8 -*-
# pylint: disable=invalid-name
#
# The Qubes OS Project, https://www.qubes-os.org/
Expand Down
2 changes: 1 addition & 1 deletion qubesdbus/domain_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf8 -*-
# -*- coding: utf-8 -*-
# pylint: disable=invalid-name
#
# The Qubes OS Project, https://www.qubes-os.org/
Expand Down
4 changes: 4 additions & 0 deletions qubesdbus/proxy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding: utf-8 -*-
#
# The Qubes OS Project, https://www.qubes-os.org/
#
Expand Down Expand Up @@ -101,6 +102,9 @@ def forward_vm_event(self, vm, event, *args, **kwargs):
log.error('Could not add vm via to dbus DomainManager')
log.info('Added VM %s', data)
self.new_vm.remove(vm)
elif event in ('domain-spawn', 'domain-pre-shutdown'):
proxy = vm_proxy(vm.qid)
property_set(proxy, 'state', 'Transient')
elif event == 'domain-start':
proxy = vm_proxy(vm.qid)
property_set(proxy, 'state', 'Running')
Expand Down

0 comments on commit cc28fa2

Please sign in to comment.