Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Mar 6, 2024
1 parent e31f61c commit dc21a6e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions providers/aws/connection/awsec2ebsconn/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ func (c *AwsEbsConnection) Asset() *inventory.Asset {
return c.asset
}

func (p *AwsEbsConnection) UpdateAsset(asset *inventory.Asset) {
p.asset = asset
}

func (c *AwsEbsConnection) Capabilities() shared.Capabilities {
return shared.Capability_RunCommand // not true, update to nothing
}
Expand Down
4 changes: 4 additions & 0 deletions providers/aws/connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ func (p *AwsConnection) Asset() *inventory.Asset {
return p.asset
}

func (p *AwsConnection) UpdateAsset(asset *inventory.Asset) {
p.asset = asset
}

func (p *AwsConnection) AccountId() string {
return p.accountId
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func TestParseTarget(t *testing.T) {
t.Run("parse snapshot target with just a resource name", func(t *testing.T) {
scanner := &azureScannerInstance{
instanceInfo: instanceInfo{
instanceInfo: &instanceInfo{
resourceGroup: "my-rg",
instanceName: "my-instance",
},
Expand All @@ -34,7 +34,7 @@ func TestParseTarget(t *testing.T) {
})
t.Run("parse instance target with just a resource name", func(t *testing.T) {
scanner := &azureScannerInstance{
instanceInfo: instanceInfo{
instanceInfo: &instanceInfo{
resourceGroup: "my-rg",
instanceName: "my-instance",
},
Expand All @@ -55,7 +55,7 @@ func TestParseTarget(t *testing.T) {
})
t.Run("parse disk target with just a resource name", func(t *testing.T) {
scanner := &azureScannerInstance{
instanceInfo: instanceInfo{
instanceInfo: &instanceInfo{
resourceGroup: "my-rg",
instanceName: "my-instance",
},
Expand All @@ -76,7 +76,7 @@ func TestParseTarget(t *testing.T) {
})
t.Run("parse snapshot target with a fully qualified Azure resource ID", func(t *testing.T) {
scanner := &azureScannerInstance{
instanceInfo: instanceInfo{
instanceInfo: &instanceInfo{
resourceGroup: "my-rg",
instanceName: "my-instance",
},
Expand All @@ -97,7 +97,7 @@ func TestParseTarget(t *testing.T) {
})
t.Run("parse instance target with a fully qualified Azure resource ID", func(t *testing.T) {
scanner := &azureScannerInstance{
instanceInfo: instanceInfo{
instanceInfo: &instanceInfo{
resourceGroup: "my-rg",
instanceName: "my-instance",
},
Expand All @@ -118,7 +118,7 @@ func TestParseTarget(t *testing.T) {
})
t.Run("parse disk target with a fully qualified Azure resource ID", func(t *testing.T) {
scanner := &azureScannerInstance{
instanceInfo: instanceInfo{
instanceInfo: &instanceInfo{
resourceGroup: "my-rg",
instanceName: "my-instance",
},
Expand Down

0 comments on commit dc21a6e

Please sign in to comment.