Skip to content

Commit

Permalink
Set default as virtual-machine for template
Browse files Browse the repository at this point in the history
Set virtual-machine as default virtualization type in service
template. If the field is set to None then the default was not
being set.

Change-Id: I2f7435013a4ecfda24bab62293bd58014ac1ab89
Closes-Bug: #1435222
  • Loading branch information
rrugge committed Mar 24, 2015
1 parent 4aed5d6 commit 5deced0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/svc-monitor/svc_monitor/config_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def update(self, obj=None):
self.params = obj.get('service_template_properties')
if self.params:
self.virtualization_type = self.params.get(
'service_virtualization_type', 'virtual-machine')
'service_virtualization_type') or 'virtual-machine'
self.update_multiple_refs('service_instance', obj)
self.id_perms = obj['id_perms']
# end update
Expand Down

0 comments on commit 5deced0

Please sign in to comment.