trunk merge with migration renumbering
This commit is contained in:
@@ -1338,7 +1338,7 @@ def zone_create(context, values):
|
||||
|
||||
def zone_update(context, zone_id, values):
|
||||
"""Update a child Zone entry."""
|
||||
return IMPL.zone_update(context, values)
|
||||
return IMPL.zone_update(context, zone_id, values)
|
||||
|
||||
|
||||
def zone_delete(context, zone_id):
|
||||
|
||||
@@ -3042,7 +3042,7 @@ def zone_update(context, zone_id, values):
|
||||
if not zone:
|
||||
raise exception.ZoneNotFound(zone_id=zone_id)
|
||||
zone.update(values)
|
||||
zone.save()
|
||||
zone.save(session=session)
|
||||
return zone
|
||||
|
||||
|
||||
|
||||
@@ -764,6 +764,17 @@ def is_uuid_like(val):
|
||||
return (len(val) == 36) and (val.count('-') == 4)
|
||||
|
||||
|
||||
def bool_from_str(val):
|
||||
"""Convert a string representation of a bool into a bool value"""
|
||||
|
||||
if not val:
|
||||
return False
|
||||
try:
|
||||
return True if int(val) else False
|
||||
except ValueError:
|
||||
return val.lower() == 'true'
|
||||
|
||||
|
||||
class Bootstrapper(object):
|
||||
"""Provides environment bootstrapping capabilities for entry points."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user