Skip to content

Commit 50427cb

Browse files
committed
Further removing strings and consolidate in constant
1 parent 010bfd3 commit 50427cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • rust/operator-binary/src/crd

rust/operator-binary/src/crd/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ impl v1alpha2::AirflowCluster {
443443
pub fn create_gitsync_links(&self) -> Vec<String> {
444444
let mut symlinks = Vec::<String>::new();
445445
for (i, _) in self.spec.cluster_config.dags_git_sync.iter().enumerate() {
446-
symlinks.push(format!("/stackable/app/allDAGs/current-{i}").to_string())
446+
symlinks.push(format!("{AIRFLOW_DAGS_FOLDER}/current-{i}").to_string())
447447
}
448448
symlinks
449449
}
@@ -452,7 +452,7 @@ impl v1alpha2::AirflowCluster {
452452
let mut python_path = Vec::<String>::new();
453453
for (i, git_sync) in self.spec.cluster_config.dags_git_sync.iter().enumerate() {
454454
let folder = &git_sync.git_folder.display();
455-
python_path.push(format!("/stackable/app/allDAGs/current-{i}/{folder}").to_string())
455+
python_path.push(format!("{AIRFLOW_DAGS_FOLDER}/current-{i}/{folder}").to_string())
456456
}
457457
python_path
458458
}

0 commit comments

Comments
 (0)