addftool 0.0.4__py3-none-any.whl → 0.0.5__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.
addftool/blob.py CHANGED
@@ -3,6 +3,7 @@ import requests
3
3
  import os
4
4
  import json
5
5
  import yaml
6
+ import tempfile
6
7
  from cryptography.fernet import Fernet
7
8
 
8
9
  from .util import execute_command
@@ -128,11 +129,16 @@ def mount_main(args):
128
129
  create_dir_for_current_user(args.buffer, sudo=args.sudo)
129
130
  create_dir_for_current_user(args.mount, sudo=args.sudo)
130
131
 
131
- # write config file into /tmp/config.yaml
132
+ # write config file into tempfile
132
133
 
133
- temp_config = "/tmp/config.yaml"
134
+ temp_config_dir = tempfile.mktemp()
135
+ print("Create temp config dir: ", temp_config_dir)
136
+ os.makedirs(temp_config_dir, exist_ok=True)
137
+ temp_config = os.path.join(temp_config_dir, "blobfuse2.yaml")
134
138
  with open(temp_config, 'w') as stream:
135
139
  yaml.dump(template, stream)
140
+
141
+ print("Create config file: ", temp_config)
136
142
 
137
143
  command = f"blobfuse2 mount {args.mount} --config-file={temp_config}"
138
144
  execute_command(command)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: addftool
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  License-File: LICENSE
5
5
  Requires-Dist: cryptography
6
6
  Requires-Dist: requests
@@ -0,0 +1,10 @@
1
+ addftool/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ addftool/blob.py,sha256=NPhtkcM2XvZrAmCKsx6KSEhpDR0BAPKdjiZHFMkVU2c,6922
3
+ addftool/tool.py,sha256=EuKQ2t2InN7yB-_oYLcdsA7vRqzRGTunwIxplUSqEG0,2054
4
+ addftool/util.py,sha256=Q3A68vJDxgfeNiEFmk54HuMuworVndocXpSbVpvGMfc,362
5
+ addftool-0.0.5.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
6
+ addftool-0.0.5.dist-info/METADATA,sha256=9ObJMQaI4yAiHPkQbd1ItXmlh-2Y8_Iq190qttlKz74,149
7
+ addftool-0.0.5.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
8
+ addftool-0.0.5.dist-info/entry_points.txt,sha256=h5TlQy4AQw-J55HqI7FRkIVRUfw-x3pStFWCoYtoCTM,78
9
+ addftool-0.0.5.dist-info/top_level.txt,sha256=jqj56-plrBbyzY0tIxB6wPzjAA8kte4hUlajyyQygN4,9
10
+ addftool-0.0.5.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- addftool/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- addftool/blob.py,sha256=5gdXzv_8RQOjCEo1ihsP3S3e7nrfqKWwfpxGw7pipXs,6690
3
- addftool/tool.py,sha256=EuKQ2t2InN7yB-_oYLcdsA7vRqzRGTunwIxplUSqEG0,2054
4
- addftool/util.py,sha256=Q3A68vJDxgfeNiEFmk54HuMuworVndocXpSbVpvGMfc,362
5
- addftool-0.0.4.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
6
- addftool-0.0.4.dist-info/METADATA,sha256=If4J7R9OXA8e0OXs02shLes0NUmSK5pk4hsYyG48qKg,149
7
- addftool-0.0.4.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
8
- addftool-0.0.4.dist-info/entry_points.txt,sha256=h5TlQy4AQw-J55HqI7FRkIVRUfw-x3pStFWCoYtoCTM,78
9
- addftool-0.0.4.dist-info/top_level.txt,sha256=jqj56-plrBbyzY0tIxB6wPzjAA8kte4hUlajyyQygN4,9
10
- addftool-0.0.4.dist-info/RECORD,,