Skip to content

Commit b73ece7

Browse files
authored
Merge pull request #30 from StackStorm-Exchange/linting
Minor linting fixes
2 parents 5c3d9fc + 9b8f706 commit b73ece7

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## V0.7.6
4+
5+
Minor linting fixes
6+
37
## V0.7.4
48

59
Enabled to specify IP Address for each NetworkAdapters in the 'vm_create_from_template' action

actions/stasis/vm_vnic_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def run(self, vm_id, network_id, ip, subnet, gateway=None, domain=None):
7878

7979
try:
8080
self.si_content.customizationSpecManager.CreateCustomizationSpec(cust_item)
81-
except:
81+
except Exception:
8282
self.logger.exception('Failed to create customization spec.')
8383
raise
8484

actions/stasis/vm_vnic_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def run(self, vm_id, network_id, vnic_key, ip, subnet, gateway=None, domain=None
7575
try:
7676
customize_task = virtualmachine.Customize(spec=customspec)
7777
successfully_customized = self._wait_for_task(customize_task)
78-
except:
78+
except Exception:
7979
self.logger.exception('Failed to create customization spec.')
8080
raise
8181
msg = 'Updated nic and assigned IP.' if successfully_customized else 'Failed to assign ip.'

actions/vm_hw_nic_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def run(self, vm_id, vm_name, network_name,
5050
nettype = "dist"
5151
network_obj = inventory.get_distributedportgroup(self.si_content,
5252
name=network_name)
53-
except:
53+
except Exception:
5454
nettype = "std"
5555
network_obj = inventory.get_network(self.si_content,
5656
name=network_name)

actions/vm_hw_nic_edit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def run(self, vm_id, vm_name, network_adapter, network_name, vsphere=None):
5050
nettype = "dist"
5151
network_obj = inventory.get_distributedportgroup(self.si_content,
5252
name=network_name)
53-
except:
53+
except Exception:
5454
nettype = "std"
5555
network_obj = inventory.get_network(self.si_content,
5656
name=network_name)
@@ -65,7 +65,7 @@ def run(self, vm_id, vm_name, network_adapter, network_name, vsphere=None):
6565
# isn't instantiated if not found
6666
try:
6767
nic
68-
except:
68+
except Exception:
6969
raise Exception('Unable to find Network Adapter provided')
7070

7171
# Create object for new Specification

pack.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
ref: vsphere
33
name: vsphere
4-
description: st2 content pack containing vsphere integrations.
5-
version: 0.7.5
4+
description: VMware vSphere
5+
version: 0.7.6
66
author: Paul Mulvihill
77
88
contributors:

0 commit comments

Comments
 (0)