Skip to content

Commit 4225957

Browse files
committed
refactor: better way of determining if namespace has Ensemble
1 parent cb1c167 commit 4225957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ ClassMethod ImportItem(InternalName As %String, force As %Boolean = 0, verbose A
12641264
set settings = ##class(SourceControl.Git.Settings).%New()
12651265
set type = ..Type(InternalName)
12661266
if ..IsRoutineOutdated(InternalName) || force || (type = "ptd"){
1267-
if (type = "ptd") && $$$comClassDefined("Ens.Deployment.Deploy") {
1267+
if (type = "ptd") && ##class(%Library.EnsembleMgr).IsEnsembleNamespace() {
12681268
set targetProduction = $piece(InternalName,"||",1)
12691269
set rollbackFile = ##class(%File).TempFilename()
12701270
set sc = ##class(Ens.Deployment.Deploy).DeployCode(filename,targetProduction,0,rollbackFile)

0 commit comments

Comments
 (0)