[#152] Allow to set mix of policies for containers and buckets #152
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/xk6-frostfs#152
Loading…
Reference in a new issue
No description provided.
Delete branch "abereziny/xk6-frostfs:feature-multi-load-policy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: a.berezin a.berezin@yadro.com
53e64370c5
to80c8d0d652
@ -26,3 +26,3 @@
parser.add_argument(
"--policy",
help="Container placement policy",
help="Comma-separated container placement policies",
It breaks policies with commas in attributes being filtered.
Does
parser
module support list natively?Some CLI frameworks parse
--policy 1 --policy 2
as a list[1,2]
-- this would be a better interface IMOfrom https://stackoverflow.com/questions/15753701/how-can-i-pass-a-list-as-a-command-line-argument-with-argparse
Well, it requires elimination of
default=REP 2
for backward compatibility, becauseaction=append
cannot work with str, and if we define default asdefault=["REP 2"]
, it will be there always.Testing is in progress with
action='append'
Reworked with
action=append
The default can be made explicit in code (like if len is zero, use default)
80c8d0d652
to9b9db46a07