Merge lp:~itohm/nova/lp735974 into lp:~hudson-openstack/nova/trunk
Proposed by
Masanori Itoh
Status: | Merged |
---|---|
Approved by: | Vish Ishaya |
Approved revision: | 924 |
Merged at revision: | 931 |
Proposed branch: | lp:~itohm/nova/lp735974 |
Merge into: | lp:~hudson-openstack/nova/trunk |
Diff against target: |
12 lines (+3/-1) 1 file modified
nova/db/sqlalchemy/api.py (+3/-1) |
To merge this branch: | bzr merge lp:~itohm/nova/lp735974 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vish Ishaya (community) | Approve | ||
Jay Pipes (community) | Approve | ||
Review via email:
|
Description of the change
Added synchronize_session parameter to a query in fixed_ip_
To post a comment you must log in.
Hi!
The synchronize_session parameter is good, thanks!
However, it looks like that update should also be setting the updated_at column as well, no?
So, could you add it, like so:
update( 'instance_ id': None,
'updated_ at', datetime. datetime. utcnow( )}, synchronize_ session= 'fetch' )
'leased': 0,
When running update() form a Query object in SQLalchemy, the normal before_update() hooks that would normally set updated_at automatically are not fired, which is why I believe the manual setting of updated_at is necessary.
Cheers!
jay