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

Added resource for ibm_pi_snapshot + cleaned up pi_instance #1867

Merged
merged 3 commits into from
Sep 14, 2020
Merged

Added resource for ibm_pi_snapshot + cleaned up pi_instance #1867

merged 3 commits into from
Sep 14, 2020

Conversation

surajsub
Copy link
Contributor

@surajsub surajsub commented Sep 4, 2020

No description provided.

@yussufsh
Copy link
Collaborator

yussufsh commented Sep 9, 2020

@hkantare Can we expect this in the next release? Thanks.


helpers.PINetworkPortIPAddress: {
"ipaddress": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The required and option fields for all power resources are having this naming convnetion helpers.PINetworkPortIPAddress (pi_XXXX) I think please follow same here also

@@ -47,6 +47,10 @@ func dataSourceIBMPIImage() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"storage_type": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add this storage_type attribute to the docs of both resource and datasources pi_image

},

"description": {
Type: schema.TypeString,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Description is optional field...can we add the helper string pi_description and in create don't set the default description if it's not set by user

if d.Get(description) == "" {
		description = "Testing from Terraform"
	}

@hkantare hkantare merged commit bf17cba into IBM-Cloud:master Sep 14, 2020
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.

4 participants