def get_vpc_guest_project_ids()

in community/dm-scaffolder/providers/project.py [0:0]


    def get_vpc_guest_project_ids(self):

        for id in self.host_projects:
            
            use_shell = sys.platform == 'win32'
            try:
                props = check_output(("gcloud compute shared-vpc associated-projects list " + id + " --format yaml" ).split(), shell=use_shell).split('---')
                
                for prop in props:
                    if prop is None:
                        continue
                    prop = self.yaml.load(prop)
                    if prop is None:
                        continue
                    
                    self.guest_projects[prop['id']] = id
            except:
                print "Project " + id + "can't be reached. Potentially up for deletion."