You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("[ERROR] Error retrieving service offering: %s", err)
127
+
returnflex.FmtErrorf("[ERROR] Error retrieving service offering: %s", err)
129
128
}
130
129
131
130
rsInstQuery.ServiceID=serviceOff[0].ID
@@ -152,13 +151,13 @@ func dataSourceIBMCISInstanceRead(d *schema.ResourceData, meta interface{}) erro
152
151
}
153
152
154
153
iflen(filteredInstances) ==0 {
155
-
returnfmt.Errorf("[ERROR] No resource instance found with name [%s]\nIf not specified please specify more filters like resource_group_id if instance doesn't exists in default group, location or service", name)
154
+
returnflex.FmtErrorf("[ERROR] No resource instance found with name [%s]\nIf not specified please specify more filters like resource_group_id if instance doesn't exists in default group, location or service", name)
156
155
}
157
156
158
157
varinstance models.ServiceInstanceV2
159
158
160
159
iflen(filteredInstances) >1 {
161
-
returnfmt.Errorf("[ERROR] More than one resource instance found with name matching [%s]\nIf not specified please specify more filters like resource_group_id if instance doesn't exists in default group, location or service", name)
160
+
returnflex.FmtErrorf("[ERROR] More than one resource instance found with name matching [%s]\nIf not specified please specify more filters like resource_group_id if instance doesn't exists in default group, location or service", name)
162
161
}
163
162
instance=filteredInstances[0]
164
163
@@ -169,14 +168,14 @@ func dataSourceIBMCISInstanceRead(d *schema.ResourceData, meta interface{}) erro
0 commit comments