-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swift: Remove deprecated option allow_versions
Start to log deprecation warning since Queens[1]. swift-c: Option allow_versions is deprecated. Configure the versioned_writes middleware in the proxy-server instead. This option will be ignored in a future release. Please refer the object versioning documentation for more information[2]. [1] https://docs.openstack.org/releasenotes/swift/queens.html#relnotes-2-16-0-stable-queens [2] https://docs.openstack.org/swift/latest/overview_object_versioning.html
- Loading branch information
Showing
7 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
chef/data_bags/crowbar/migrate/swift/301_update_allow_versions.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
def upgrade(template_attrs, template_deployment, attrs, deployment) | ||
attrs["allow_versioned_writes"] = attrs["allow_versions"] | ||
attrs.delete("allow_versions") | ||
return attrs, deployment | ||
end | ||
|
||
def downgrade(template_attrs, template_deployment, attrs, deployment) | ||
attrs.delete("allow_versioned_writes") | ||
attrs["allow_versions"] = template_attrs["allow_versions"] | ||
return attrs, deployment | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters