From 73497ee822b2ae90001b80c30ec3481757c71d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Tue, 22 May 2018 17:36:21 +0200 Subject: [PATCH] remove potential sensitive information --- ovh/data_source_ovh_bankaccount.go | 45 ------------------------------ ovh/data_source_ovh_creditcard.go | 25 ----------------- 2 files changed, 70 deletions(-) diff --git a/ovh/data_source_ovh_bankaccount.go b/ovh/data_source_ovh_bankaccount.go index 2a0cde85f..843e4f253 100644 --- a/ovh/data_source_ovh_bankaccount.go +++ b/ovh/data_source_ovh_bankaccount.go @@ -55,42 +55,6 @@ func dataSourceBankAccount() *schema.Resource { Type: schema.TypeString, Computed: true, }, - "validation_document_link": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - }, - "unique_reference": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - }, - "creation_date": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - }, - "mandate_signature_date": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - }, - "owner_name": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - }, - "owner_address": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - }, - "iban": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - }, - "bic": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - }, - "id": &schema.Schema{ - Type: schema.TypeInt, - Computed: true, - }, "default": &schema.Schema{ Type: schema.TypeBool, Computed: true, @@ -167,16 +131,7 @@ func dataSourceBankAccountRead(d *schema.ResourceData, meta interface{}) error { // Set data d.Set("description", (*the_bank_account).Description) d.Set("state", (*the_bank_account).State) - d.Set("id", (*the_bank_account).Id) d.Set("default", (*the_bank_account).Default) - d.Set("validation_document_link", (*the_bank_account).ValidationDocumentLink) - d.Set("unique_reference", (*the_bank_account).UniqueReference) - d.Set("creation_date", (*the_bank_account).CreationDate) - d.Set("mandate_signature_date", (*the_bank_account).MandateSignatureDate) - d.Set("owner_name", (*the_bank_account).OwnerName) - d.Set("owner_address", (*the_bank_account).OwnerAddress) - d.Set("iban", (*the_bank_account).Iban) - d.Set("bic", (*the_bank_account).Bic) d.SetId(fmt.Sprintf("%d", (*the_bank_account).Id)) return nil diff --git a/ovh/data_source_ovh_creditcard.go b/ovh/data_source_ovh_creditcard.go index b1958f0fd..d5d078df4 100644 --- a/ovh/data_source_ovh_creditcard.go +++ b/ovh/data_source_ovh_creditcard.go @@ -53,34 +53,14 @@ func dataSourceCreditCard() *schema.Resource { Type: schema.TypeString, Computed: true, }, - "number": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - }, - "expiration_date": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - }, - "type": &schema.Schema{ - Type: schema.TypeString, - Computed: true, - }, "state": &schema.Schema{ Type: schema.TypeString, Computed: true, }, - "id": &schema.Schema{ - Type: schema.TypeInt, - Computed: true, - }, "default": &schema.Schema{ Type: schema.TypeBool, Computed: true, }, - "threeds_validated": &schema.Schema{ - Type: schema.TypeBool, - Computed: true, - }, }, } } @@ -164,13 +144,8 @@ func dataSourceCreditCardRead(d *schema.ResourceData, meta interface{}) error { } // Set data d.Set("description", (*the_credit_card).Description) - d.Set("number", (*the_credit_card).Number) - d.Set("expiration_date", (*the_credit_card).Expiration) - d.Set("type", (*the_credit_card).Type) d.Set("state", (*the_credit_card).State) - d.Set("id", (*the_credit_card).Id) d.Set("default", (*the_credit_card).Default) - d.Set("threeds_validated", (*the_credit_card).ThreeDSValidated) d.SetId(fmt.Sprintf("%d", (*the_credit_card).Id)) return nil }