File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
merizrizal/idcloudhost/plugins/modules Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ def main(self):
109109 error = data
110110 )
111111
112- module .fail_json (msg = 'Create network fail ' , ** result )
112+ module .fail_json (msg = 'Failed to create the VPC network. ' , ** result )
113113 else :
114114 result = dict (
115115 uuid = data ['uuid' ],
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def main(self):
194194 error = f'Selected os_name is { os_name } then os_version must be one of { os_version_choices [os_name ]} , got { os_version } '
195195 )
196196
197- module .fail_json (msg = 'Create VM fail ' , ** result )
197+ module .fail_json (msg = 'Failed to create the VM. ' , ** result )
198198
199199 url = f'{ self .base_url } /{ self .location } /{ self .endpoint_url } '
200200 url_headers = {
@@ -222,7 +222,7 @@ def main(self):
222222 error = data
223223 )
224224
225- module .fail_json (msg = 'Create VM fail ' , ** data )
225+ module .fail_json (msg = 'Failed to create the VM. ' , ** data )
226226 else :
227227 result = dict (
228228 uuid = data ['uuid' ],
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ def main(self):
9797 error = data
9898 )
9999
100- module .fail_json (msg = 'Get network fail ' , ** result )
100+ module .fail_json (msg = 'Failed to get the VPC network. ' , ** result )
101101 else :
102102 for value in data :
103103 if value ['is_default' ]:
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ def main(self):
132132 error = data
133133 )
134134
135- module .fail_json (msg = 'Get public IPv4 fail ' , ** result )
135+ module .fail_json (msg = 'Failed to get the public IPv4 address. ' , ** result )
136136 else :
137137 result = dict (
138138 error = 'Public IPv4 address is not found'
@@ -156,7 +156,7 @@ def main(self):
156156
157157 module .exit_json (** result )
158158
159- module .fail_json (msg = 'Get public IPv4 fail ' , ** result )
159+ module .fail_json (msg = 'Failed to get the public IPv4 address ' , ** result )
160160
161161
162162if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments