feat(host): Allow nil setAttributes for buildDescribeInstancesInput (#79)

* Allow nil setAttributes

* move the nil check

---------

Co-authored-by: Delaine Rogers <delainerogers@dhcp-9-16-190-160.sjs-us.ibm.com>
This commit is contained in:
Delaine RogersandDelaine Rogers authored and Matt Romanelli committed 2026-09-28 12:00:33 -05:00
1 parent fded8acb19
commit 0d36d4de0b
2 files changed
+19

No files matched your search

+4
View File
@@ -634,6 +634,10 @@ func buildFilters(attrs *SetAttributes) ([]types.Filter, error) {
}
func buildDescribeInstancesInput(attrs *SetAttributes, dryRun bool) (*ec2.DescribeInstancesInput, error) {
if attrs == nil {
attrs = &SetAttributes{}
}
filters, err := buildFilters(attrs)
if err != nil {
return nil, fmt.Errorf("error building filters: %w", err)