Skip to content

Commit

Permalink
VPNaaS datamodel IKEPolicy lifetime unit typo
Browse files Browse the repository at this point in the history
There was a typo in handling the IKEPolicy
lifetime, during the IKEPolicy creation time.

-Fixed the typo issue

Fixes bug 1207572

Change-Id: If8c56619c9a340a04e336b6b83d219df10b91e6c
  • Loading branch information
Swaminathan Vasudevan committed Aug 2, 2013
1 parent 256f974 commit ec2eb04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neutron/db/vpn/vpn_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def create_ikepolicy(self, context, ikepolicy):
ike = ikepolicy['ikepolicy']
tenant_id = self._get_tenant_id_for_create(context, ike)
lifetime_info = ike.get('lifetime', [])
lifetime_units = lifetime_info.get('unit', 'seconds')
lifetime_units = lifetime_info.get('units', 'seconds')
lifetime_value = lifetime_info.get('value', 3600)

with context.session.begin(subtransactions=True):
Expand Down

0 comments on commit ec2eb04

Please sign in to comment.