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

Use device number 0 for primary device in unit test #247

Merged
merged 1 commit into from
Jan 9, 2019
Merged

Use device number 0 for primary device in unit test #247

merged 1 commit into from
Jan 9, 2019

Conversation

nak3
Copy link
Contributor

@nak3 nak3 commented Nov 27, 2018

Description of changes:

This patch makes very tiny change in unit test.

According to the comment below in pkg/awsutils/awsutils.go,
DeviceNumer 0 means primary interface.

// DeviceNumber is the device number of network interface
DeviceNumber int64 // 0 means it is primary interface

Hence, this patch changes to set primaryDevice to 0 and secDevice to 2 in
unit test.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This patch makes very tiny change in unit test.

According to the comment below in pkg/awsutils/awsutils.go,
DeviceNumer 0 means primary interface.

```
        // DeviceNumber is the  device number of network interface
        DeviceNumber int64 // 0 means it is primary interface
```

This patch changes to set primaryDevice to 0 and secDevice to 2 in
unit test.
primaryDevice = 2
secDevice = 0
primaryDevice = 0
secDevice = 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Slightly less confusing 🙂

@mogren mogren merged commit ed8e2bc into aws:master Jan 9, 2019
@nak3 nak3 deleted the primary-dev-0 branch January 9, 2019 23:51
@mogren mogren added this to the v1.4 milestone Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants