#!/usr/bin/env python
#############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################

from . import myhosts

class Workspace(object):
    def __init__(self, node):
        self._node = node

    def get_targets(self):
        hosts = self._node.get('targets', [])
        hosts = [x for x in hosts if myhosts.is_enabled(x['name'])]
        for host in hosts:
            assert 'name' in host
        return hosts

@@ -413,21 +413,18 @@
         
-hosts
+rr
  = %5Bx fo
@@ -470,16 +470,94 @@
 ame'%5D)%5D%0A
+        rr.extend(%5Bx for x in hosts if not myhosts.is_known_host(x%5B'name'%5D)%5D)%0A
         

Add containers in hosts so we can rsync into containers