delete cvm-filter configuration

This commit is contained in:
piggona 2020-07-21 10:25:43 +08:00
parent 38563df35c
commit ecfce6ef4c
1 changed files with 9 additions and 9 deletions

View File

@ -32,15 +32,15 @@ func (s *stepCheckSourceImage) Run(ctx context.Context, state multistep.StateBag
if err != nil {
return Halt(state, fmt.Errorf("regex compilation error"), "Bad input")
}
private := "PRIVATE_IMAGE"
public := "PUBLIC_IMAGE"
shared := "SHARED_IMAGE"
filterType := "image-type"
filter := &cvm.Filter{
Name: &filterType,
Values: []*string{&private, &public, &shared},
}
req.Filters = []*cvm.Filter{filter}
// private := "PRIVATE_IMAGE"
// public := "PUBLIC_IMAGE"
// shared := "SHARED_IMAGE"
// filterType := "image-type"
// filter := &cvm.Filter{
// Name: &filterType,
// Values: []*string{&private, &public, &shared},
// }
// req.Filters = []*cvm.Filter{filter}
}
var resp *cvm.DescribeImagesResponse
err = Retry(ctx, func(ctx context.Context) error {