csc-cia-stne 0.0.48__py3-none-any.whl → 0.0.50__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- csc_cia_stne/servicenow.py +3 -3
- {csc_cia_stne-0.0.48.dist-info → csc_cia_stne-0.0.50.dist-info}/METADATA +1 -1
- {csc_cia_stne-0.0.48.dist-info → csc_cia_stne-0.0.50.dist-info}/RECORD +6 -6
- {csc_cia_stne-0.0.48.dist-info → csc_cia_stne-0.0.50.dist-info}/LICENCE +0 -0
- {csc_cia_stne-0.0.48.dist-info → csc_cia_stne-0.0.50.dist-info}/WHEEL +0 -0
- {csc_cia_stne-0.0.48.dist-info → csc_cia_stne-0.0.50.dist-info}/top_level.txt +0 -0
csc_cia_stne/servicenow.py
CHANGED
@@ -242,7 +242,7 @@ class ServiceNow:
|
|
242
242
|
result = response.json()
|
243
243
|
if "result" in result:
|
244
244
|
update = result["result"]
|
245
|
-
logging.debug(f"Atualização concluída com sucesso. Registro atualizado: {update[
|
245
|
+
logging.debug(f"Atualização concluída com sucesso. Registro atualizado: {update['sys_id']} | Alterações: {payload}")
|
246
246
|
return {"success" : True, "result" : update}
|
247
247
|
else:
|
248
248
|
logging.debug(f"A Resposta da sua requisição não contém o campo 'Result'. Segue o retorno: \n {result} | Alterações: {payload}")
|
@@ -250,7 +250,7 @@ class ServiceNow:
|
|
250
250
|
|
251
251
|
#TRATAMENTOS DE ERRO
|
252
252
|
except requests.exceptions.HTTPError as http_err:
|
253
|
-
logging.debug(f"Erro HTTP ao tentar atualizar o ticket: {http_err} \n Reposta da solicitação: {response.json().get(
|
253
|
+
logging.debug(f"Erro HTTP ao tentar atualizar o ticket: {http_err} \n Reposta da solicitação: {response.json().get('error').get('message')}")
|
254
254
|
return {"success" : False, "error" : str(http_err) , "result" : None}
|
255
255
|
|
256
256
|
except requests.exceptions.RequestException as req_err:
|
@@ -316,7 +316,7 @@ class ServiceNow:
|
|
316
316
|
#TRATAMENTOS DE ERRO
|
317
317
|
except requests.exceptions.HTTPError as http_err:
|
318
318
|
|
319
|
-
logging.debug(f"Erro HTTP ao tentar registrar o ticket: {http_err} \n Reposta da solicitação: {response.json().get(
|
319
|
+
logging.debug(f"Erro HTTP ao tentar registrar o ticket: {http_err} \n Reposta da solicitação: {response.json().get('error').get('message')}")
|
320
320
|
return {"success" : False, "error" : str(http_err) , "result" : None}
|
321
321
|
|
322
322
|
except requests.exceptions.RequestException as req_err:
|
@@ -8,7 +8,7 @@ csc_cia_stne/karavela.py,sha256=LlpFiDu0ww7eh8F-oREWSQo2mVoQMibx0EGiHR6tznI,4231
|
|
8
8
|
csc_cia_stne/logger_json.py,sha256=CXxSCOFGMymDi8XE9SKnPKjW4D0wJLqDLnxqePS26i8,3187
|
9
9
|
csc_cia_stne/logger_rich.py,sha256=WlMqxH1lMy-tzK0I4NpBRgSzPdHc2-YSU71N3SsKM5A,8338
|
10
10
|
csc_cia_stne/provio.py,sha256=G-pDnHYLSp97joc7S7dvwjNvl3omnTmvdi3rOPQf5GA,3987
|
11
|
-
csc_cia_stne/servicenow.py,sha256=
|
11
|
+
csc_cia_stne/servicenow.py,sha256=cJtNtLZ8glWfs3OAzl78ZFlPyPz39CSBxHqpTdUU7i0,32136
|
12
12
|
csc_cia_stne/slack.py,sha256=33_UNF7M529eIuWjmzSJFEZ4RmVNkFkuVxvxwsKY1tQ,8126
|
13
13
|
csc_cia_stne/stne_admin.py,sha256=vnGSEzcmqWE42vg71oEuoRg6ENaGsZsXFOjxduSH4KU,23561
|
14
14
|
csc_cia_stne/web.py,sha256=ubLN-t67bG6LGkPWOgfT6bZ-cRV6Gh9nfjJWRCeyWz4,11647
|
@@ -24,8 +24,8 @@ csc_cia_stne/utilitarios/validations/GoogleDriveValidator.py,sha256=PBo-AV2bjR__
|
|
24
24
|
csc_cia_stne/utilitarios/validations/ServiceNowValidator.py,sha256=yleKUIo1ZfyloP9fDPNjv3JJXdLcocT81WIgRSYmqEA,14423
|
25
25
|
csc_cia_stne/utilitarios/validations/__init__.py,sha256=O_qyEU2ji3u6LHUXZCXvUFsMpoMWL625qqHTXyXivTA,106
|
26
26
|
csc_cia_stne/utilitarios/validations/web_validator.py,sha256=Mas_Jg_VjvM4f-RAHBDs7FTQELEGfFQ5yGPuu_t1Zmg,3919
|
27
|
-
csc_cia_stne-0.0.
|
28
|
-
csc_cia_stne-0.0.
|
29
|
-
csc_cia_stne-0.0.
|
30
|
-
csc_cia_stne-0.0.
|
31
|
-
csc_cia_stne-0.0.
|
27
|
+
csc_cia_stne-0.0.50.dist-info/LICENCE,sha256=LPGMtgKki2C3KEZP7hDhA1HBrlq5JCHkIeStUCLEMx4,1073
|
28
|
+
csc_cia_stne-0.0.50.dist-info/METADATA,sha256=BE73KMagJJrS8gT0gLjoEbc2OKOZcb5s7KDDXLoxskk,1191
|
29
|
+
csc_cia_stne-0.0.50.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
30
|
+
csc_cia_stne-0.0.50.dist-info/top_level.txt,sha256=ldo7GVv3tQx5KJvwBzdZzzQmjPys2NDVVn1rv0BOF2Q,13
|
31
|
+
csc_cia_stne-0.0.50.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|