Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 ensure ebs connection config has type filesystem #2293

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

vjeffrey
Copy link
Contributor

picked up this hint from #2171

just trying to get the small we-definitely-want-this pieces in to try to break down this ebs scan issue a bit

@@ -112,7 +112,7 @@ func (blockEntries blockDevices) GetUnmountedBlockEntry() (*fsInfo, error) {
}

func (entry blockDevice) IsNoBootVolume() bool {
return entry.Uuid != "" && entry.FsType != "" && entry.FsType != "vfat" && entry.Label != "EFI"
return entry.Uuid != "" && entry.FsType != "" && entry.FsType != "vfat" && entry.Label != "EFI" && entry.Label != "boot"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the reason my tests kept failing so much - i was testing against a rhel machine and i was picking up the boot volume, which we would then of course fail to mount and everything would go a little haywire

@@ -173,6 +173,7 @@ func NewAwsEbsConnection(id uint32, conf *inventory.Config, asset *inventory.Ass

// Create and initialize fs provider
fsConn, err := connection.NewFileSystemConnection(id, &inventory.Config{
Type: "filesystem",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks to @czunker for the hint on this one

Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @vjeffrey

@chris-rock chris-rock merged commit ddaf59c into main Oct 19, 2023
10 checks passed
@chris-rock chris-rock deleted the vj/ebs-provider-fs branch October 19, 2023 07:24
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants