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

Add On-prem Check For NSG/NAG #535

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Add On-prem Check For NSG/NAG #535

wants to merge 1 commit into from

Conversation

michaelkad
Copy link
Collaborator

Add On-prem check for NSG/NAG

@@ -24,6 +24,10 @@ func NewIBMPINetworkAddressGroupClient(ctx context.Context, sess *ibmpisession.I

// Create a new Network Address Group
func (f *IBMPINetworkAddressGroupClient) Create(body *models.NetworkAddressGroupCreate) (*models.NetworkAddressGroup, error) {
// Add check for on-prem location
if f.session.IsOnPrem() {
return nil, fmt.Errorf("not supported in on-prem location")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return nil, fmt.Errorf("not supported in on-prem location")
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")

this is a slightly differently worded message than the ones currently in use

I don't have a preference either way, but I would like all of them to be consistent. Maybe create a constant for it?

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