cortexapps-cli 0.26.2__py3-none-any.whl → 0.26.3__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.
cortexapps_cli/cortex.py CHANGED
@@ -73,11 +73,12 @@ def read_file(args):
73
73
  def read_json_from_yaml(args):
74
74
  if str(type(args.file)) == "<class '_io.TextIOWrapper'>":
75
75
  data = yaml.safe_load(args.file.read())
76
+
76
77
  else:
77
78
  with open(args.file.name, 'rb') as f:
78
79
  data = yaml.safe_load(f)
79
80
 
80
- return '{ "spec": "' + str(data) + '" }'
81
+ return json.dumps({ "spec": "" + str(data) + "" })
81
82
 
82
83
  def check_config_file(config_file, replace_string):
83
84
  if not os.path.isfile(config_file):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cortexapps-cli
3
- Version: 0.26.2
3
+ Version: 0.26.3
4
4
  Summary: Command Line Interface for cortexapps
5
5
  License: MIT
6
6
  Author: Cortex Apps
@@ -0,0 +1,7 @@
1
+ cortexapps_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ cortexapps_cli/cortex.py,sha256=LC1TGSH5Ohv6QWk0x1H2f67vlB1P__wXIQIX6X5pvDo,155780
3
+ cortexapps_cli-0.26.3.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
4
+ cortexapps_cli-0.26.3.dist-info/METADATA,sha256=P7KmKxCcyMAo87ZKLt6i6dB6iDQcrns0v7hJ7qhIuE0,22135
5
+ cortexapps_cli-0.26.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
+ cortexapps_cli-0.26.3.dist-info/entry_points.txt,sha256=w1kTKcdoPY8UvGt6GN4vEk03_SRnUpF2dZflfPQo0BE,52
7
+ cortexapps_cli-0.26.3.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- cortexapps_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- cortexapps_cli/cortex.py,sha256=NXmtBFB_vlDdmEyTjooMR_u6SkfvfLk7HJLHc1Mha7E,155769
3
- cortexapps_cli-0.26.2.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
4
- cortexapps_cli-0.26.2.dist-info/METADATA,sha256=qiaA86cgca6paBrWYFmnAApnJbUcrFCViLCy0SFArE8,22135
5
- cortexapps_cli-0.26.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
- cortexapps_cli-0.26.2.dist-info/entry_points.txt,sha256=w1kTKcdoPY8UvGt6GN4vEk03_SRnUpF2dZflfPQo0BE,52
7
- cortexapps_cli-0.26.2.dist-info/RECORD,,