Skip to content

Commit 6952b9d

Browse files
committed
pass through magic embed term "all" instead of expanding to list of known types
1 parent 0738e1c commit 6952b9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

netfoundry/organization.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,9 @@ def get_network(self, network_id: str, embed: object = None, accept: str = None)
592592
else:
593593
requested_types.extend(embed.split(','))
594594
if 'all' in requested_types:
595-
requested_types.extend(EMBED_NET_RESOURCES.keys())
596-
valid_types = [plural(type) for type in requested_types if EMBED_NET_RESOURCES.get(plural(type))]
595+
valid_types = ['all']
596+
else:
597+
valid_types = [plural(type) for type in requested_types if EMBED_NET_RESOURCES.get(plural(type))]
597598
params['embed'] = ','.join(valid_types)
598599
self.logger.debug(f"requesting embed of: '{valid_types}'")
599600

0 commit comments

Comments
 (0)