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

41 enhancement netapp ontap storage volume need to support import #91

Conversation

carchi8py
Copy link
Contributor

This complete #41

CHANGELOG.md Outdated
@@ -1,4 +1,8 @@

## 1.1.0 ()
ENHANCEMENTS:
* **netapp-ontap_storage_volume_resource**: Add support for import ([#72](https://github.com/NetApp/terraform-provider-netapp-ontap/issues/41))
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 need to be 41

if len(idParts) != 3 || idParts[0] == "" || idParts[1] == "" || idParts[2] == "" {
resp.Diagnostics.AddError(
"Unexpected Import Identifier",
fmt.Sprintf("Expected import identifier with format: attr_one,attr_two,attr_three. Got: %q", req.ID),
Copy link
Contributor

@chuyich chuyich Nov 14, 2023

Choose a reason for hiding this comment

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

Shall we update the error message on attr_one,attr_two... with real parameter names? That will help the user know what need to put.
Expected import identifier with format: name,svm_name,cx_proflie_name. Got: xxx

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes we should do that.

@@ -164,4 +164,86 @@ Optional:
- `policy_name` (String) The tiering policy that is to be associated with the volume

## Import
Import is currently not support for this Resource.
This resource supports import, which allows you to import existing volumes into the state of this resource.
Import require a unique ID composed of the volume name, the volume name, separated by a comma.
Copy link
Contributor

Choose a reason for hiding this comment

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

"the volume name, the volume name" ?

@carchi8py carchi8py merged commit 28bd7d9 into integration/main Nov 17, 2023
7 checks passed
@carchi8py carchi8py deleted the 41-enhancement-netapp-ontap_storage_volume-need-to-support-import branch November 17, 2023 20:23
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.

[Enhancement]: netapp-ontap_storage_volume Need to support import
3 participants