pyegeria 1.5.1.1.21__py3-none-any.whl → 1.5.1.1.23__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.
@@ -97,7 +97,10 @@ def create_glossary(
97
97
  == "Glossary:" + name
98
98
  ):
99
99
  click.echo(
100
- f"\tFound existing glossary: {glossary['glossaryProperties']['qualifiedName']} with id of {glossary['elementHeader']['guid']}\n"
100
+ (
101
+ f"\tFound existing glossary: {glossary['glossaryProperties']['qualifiedName']} with id of {glossary['elementHeader']['guid']}\n"
102
+ "Exiting\n"
103
+ )
101
104
  )
102
105
  sys.exit(0)
103
106
  else:
@@ -1613,21 +1613,6 @@ class GlossaryManager(GlossaryBrowser):
1613
1613
  # If upsert is set we need to see if it can be done (there must be a valid qualified name) and then
1614
1614
  # do the update for the row - if there is no qualified name we will treat the row as an insert.
1615
1615
  if qualified_name:
1616
- body = {
1617
- "class": "ReferenceableRequestBody",
1618
- "elementProperties": {
1619
- "class": "GlossaryTermProperties",
1620
- "qualifiedName": qualified_name,
1621
- "displayName": term_name,
1622
- "summary": summary,
1623
- "description": description,
1624
- "abbreviation": abbrev,
1625
- "examples": examples,
1626
- "usage": usage,
1627
- "publishVersionIdentifier": version,
1628
- },
1629
- "initialStatus": status,
1630
- }
1631
1616
  term_stuff = self.get_terms_by_name(
1632
1617
  qualified_name, glossary_guid
1633
1618
  )
@@ -1637,13 +1622,27 @@ class GlossaryManager(GlossaryBrowser):
1637
1622
  {
1638
1623
  "term_name": term_name,
1639
1624
  "qualified_name": qualified_name,
1640
- "term_guid": term_guid,
1641
1625
  "error": "Matching term not found - skipping",
1642
1626
  }
1643
1627
  )
1644
1628
  continue
1645
1629
  else:
1646
1630
  # An existing term was found - so update it!
1631
+ body = {
1632
+ "class": "ReferenceableRequestBody",
1633
+ "elementProperties": {
1634
+ "class": "GlossaryTermProperties",
1635
+ "qualifiedName": qualified_name,
1636
+ "displayName": term_name,
1637
+ "summary": summary,
1638
+ "description": description,
1639
+ "abbreviation": abbrev,
1640
+ "examples": examples,
1641
+ "usage": usage,
1642
+ "publishVersionIdentifier": version,
1643
+ },
1644
+ "initialStatus": status,
1645
+ }
1647
1646
  term_guid = term_stuff["elementHeader"]["guid"]
1648
1647
  self.update_term(
1649
1648
  term_guid, body_slimmer(body), is_merge_update=True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 1.5.1.1.21
3
+ Version: 1.5.1.1.23
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -20,7 +20,7 @@ pyegeria/commands/cat/get_project_dependencies.py,sha256=B0JaMSUi0hzVgos1sTY2uUP
20
20
  pyegeria/commands/cat/get_project_structure.py,sha256=n2GbNd07w1DTo7jTR8b2ewXRyNcat_2BcCBRyDMldwk,5969
21
21
  pyegeria/commands/cat/get_tech_type_elements.py,sha256=-m3Q0BoNqkCtV8h75vMwTcOV-_ymEXmnJcr4Ec7WMAw,6180
22
22
  pyegeria/commands/cat/get_tech_type_template.py,sha256=gMFVcgCIm09GQu1Vsc5ZUVH9XLhItAG1eVGZJrcnHeQ,6174
23
- pyegeria/commands/cat/glossary_actions.py,sha256=7DT4yMYMpNl8G6vYYGCunrRZx16402-Udn06ElWM6oA,13905
23
+ pyegeria/commands/cat/glossary_actions.py,sha256=hS3MVbMr279HGsb_anCrUuy4SF0Q_2WATCakD3Gy8Bs,14001
24
24
  pyegeria/commands/cat/list_archives.py,sha256=FEZ2XYnQIWo2PztWqnj6unn0pbblPU0-bMbTyI3csv4,5464
25
25
  pyegeria/commands/cat/list_assets.py,sha256=bNwSaBDz661hfnc2Rn4j4HPHAugKvz0XwN9L1m4FVQk,6529
26
26
  pyegeria/commands/cat/list_cert_types.py,sha256=mbCls_EqC5JKG5rvS4o69k7KgZ6aNXlcqoJ3DtHsTFA,7127
@@ -95,7 +95,7 @@ pyegeria/egeria_tech_client.py,sha256=7NfqpJFft5GR4NPRDVDw22L9caHbXB8fhx0TAf6qEo
95
95
  pyegeria/feedback_manager_omvs.py,sha256=B66e3ZCaC_dirb0mcb2Nz3PYh2ZKsoMAYNOb3euNiro,152931
96
96
  pyegeria/full_omag_server_config.py,sha256=LBnqUiz1ofBdlKBzECFs_pQbdJwcWigAukWHGJRR2nU,47340
97
97
  pyegeria/glossary_browser_omvs.py,sha256=NcitYaZJqwVODBO5zBtWpXPNUJJ3DKzEbRaOFSAyUlg,93554
98
- pyegeria/glossary_manager_omvs.py,sha256=GZyudT2zCeJNH6aGBEYRqA5U1puPEPtfMpgFOTuc_fQ,126277
98
+ pyegeria/glossary_manager_omvs.py,sha256=BWnSNiNuyjA6zQA2loLKxiMaUGnRazIg9RfQKg7kD5U,126277
99
99
  pyegeria/mermaid_utilities.py,sha256=GXiS-subb5nJcDqlThZWX2T8WspU1neFfhf4TxRoMh4,8344
100
100
  pyegeria/my_profile_omvs.py,sha256=DyECbUFEcgokrIbzdMMNljC3bqfqKGXAF2wZEpzvRYs,34666
101
101
  pyegeria/platform_services.py,sha256=CJIOYIFEbcIGwdWlApAQcXxZTsdrhFtpJcm4O3p7dG0,41646
@@ -107,8 +107,8 @@ pyegeria/template_manager_omvs.py,sha256=heqbKeum5hPCHap4r1RUZU8YB3QaQlxVNbq4GZi
107
107
  pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
108
108
  pyegeria/valid_metadata_omvs.py,sha256=tfCGXed5LLt59YA8uZNNtd9UJ-lRZfPU_uZxK31Yux0,65069
109
109
  pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
110
- pyegeria-1.5.1.1.21.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
111
- pyegeria-1.5.1.1.21.dist-info/METADATA,sha256=TmOUUKk56OgTctP9SaZevPAAj6ANRdOxRXtH-4S63j8,2998
112
- pyegeria-1.5.1.1.21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
- pyegeria-1.5.1.1.21.dist-info/entry_points.txt,sha256=49rVcJuuKXUSC-9ZNzr-ybsaUL-wm6xrUodCZeKJdGc,4898
114
- pyegeria-1.5.1.1.21.dist-info/RECORD,,
110
+ pyegeria-1.5.1.1.23.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
111
+ pyegeria-1.5.1.1.23.dist-info/METADATA,sha256=Asnqpy2IVAKJdBg4YhO3zQdIDaGFcfzX1DAxbrcsFNQ,2998
112
+ pyegeria-1.5.1.1.23.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
+ pyegeria-1.5.1.1.23.dist-info/entry_points.txt,sha256=49rVcJuuKXUSC-9ZNzr-ybsaUL-wm6xrUodCZeKJdGc,4898
114
+ pyegeria-1.5.1.1.23.dist-info/RECORD,,