make 'mgmt-permission:' event compatible with check-events script

It doesn't support str.format().
This commit is contained in:
Marek Marczykowski-Górecki 2017-05-24 01:35:33 +02:00
parent afdfbe4eed
commit d42197e94c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -168,7 +168,7 @@ class AbstractQubesAPI(object):
def fire_event_for_permission(self, **kwargs): def fire_event_for_permission(self, **kwargs):
'''Fire an event on the source qube to check for permission''' '''Fire an event on the source qube to check for permission'''
return self.src.fire_event_pre('mgmt-permission:{}'.format(self.method), return self.src.fire_event_pre('mgmt-permission:' + self.method,
dest=self.dest, arg=self.arg, **kwargs) dest=self.dest, arg=self.arg, **kwargs)
def fire_event_for_filter(self, iterable, **kwargs): def fire_event_for_filter(self, iterable, **kwargs):