Skip to content

Commit

Permalink
FIX Service\PuppetModule
Browse files Browse the repository at this point in the history
  • Loading branch information
goten4 committed May 22, 2015
1 parent 51186c7 commit 977e77c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/KmbPmProxy/Service/PuppetModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ public function getAllInstalledByEnvironment(KmbDomain\Model\EnvironmentInterfac
foreach ($moduleData->classes as $classData) {
$classEntityClassName = $this->getOptions()->getPuppetClassEntityClass();
$puppetClass = new $classEntityClassName;
$classes[] = $this->getClassHydrator()->hydrate((array)$classData, $puppetClass);
if (!empty($classData)) {
$this->getClassHydrator()->hydrate((array)$classData, $puppetClass);
}
$classes[] = $puppetClass;
}
$modules[$module->getName()] = $module->setClasses($classes);
}
Expand Down

0 comments on commit 977e77c

Please sign in to comment.