Browse Source

add pretty name to security group rule tasks

Change-Id: I16c435ce1e4997e29b71e896563eed9648f50a30
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Doug Hellmann 2 years ago
parent
commit
2f49d2be84
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      downpour/resolver.py

+ 4
- 1
downpour/resolver.py View File

@@ -98,7 +98,10 @@ class Resolver:
98 98
                     remote_group = self.cloud.get_security_group(rule.remote_group_id)
99 99
                     remote_groups[remote_group.id] = remote_group.name
100 100
                 rule_data['remote_group_id'] = remote_groups[rule.remote_group_id]
101
-            yield {'os_security_group_rule': rule_data}
101
+            yield {
102
+                'name': 'Add rule to security group {}'.format(group.name),
103
+                'os_security_group_rule': rule_data,
104
+            }
102 105
 
103 106
     def volume(self, volume, save_state):
104 107
         if ('volume', volume.name) in self._memo:

Loading…
Cancel
Save