Skip to content

Commit 7781861

Browse files
authored
don't generate aml ignore file when path is url (Azure#32644)
* don't generate aml ignore file when path is url * update * spell
1 parent 5a4f295 commit 7781861

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.vscode/cspell.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,9 @@
430430
"dacl",
431431
"whls",
432432
"aiter",
433-
"solft"
433+
"solft",
434+
"amltmp",
435+
"amltemp"
434436
],
435437
"overrides": [
436438
{

sdk/ml/azure-ai-ml/azure/ai/ml/operations/_feature_set_operations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ def begin_create_or_update(self, featureset: FeatureSet, **kwargs: Dict) -> LROP
160160

161161
sas_uri = None
162162

163-
with open(os.path.join(featureset_copy.path, ".amlignore"), mode="w", encoding="utf-8") as f:
164-
f.write(".*")
163+
if not is_url(featureset_copy.path):
164+
with open(os.path.join(featureset_copy.path, ".amlignore"), mode="w", encoding="utf-8") as f:
165+
f.write(".*\n*.amltmp\n*.amltemp")
165166

166167
featureset_copy, _ = _check_and_upload_path(
167168
artifact=featureset_copy, asset_operations=self, sas_uri=sas_uri, artifact_type=ErrorTarget.FEATURE_SET

0 commit comments

Comments
 (0)