Sure! Here's a markdown document of the question and answer:
Question:
I have a map of key-value pairs in a Terraform .tfvars file that is used in variables and is available. How do I convert this into a list of just the keys from the map?
| https://docs.google.com/document/d/1W9TBqAzTKzjMKGe4JqveQj1XuR3kyNVGR6RRUpHkozU/edit?usp=sharing |
| -- find and replace value in a column | |
| update editors set hourly_rate = replace(hourly_rate, ',', '') |
| select * from skills u join skills u2 | |
| on upper(u.name)=upper(u2.name) where u.id != u2.id | |
| order by u.name; |
I was having this problem after:
yarn buildfix: I tried many things so not sure which combination of things worked.
yarn set version stable)import { Puzzle } from '@strapi/icons'; from import Puzzle from '@strapi/icons/Puzzle';| #!/usr/bin/env python3 | |
| import argparse | |
| from pathlib import Path | |
| # Define available arguments | |
| parser = argparse.ArgumentParser( | |
| description="Create a new .loc site for local development. It will create a new folder inside ~/Sites, add a virtualhost and an entry in /etc/hosts") | |
| parser.add_argument('siteName', metavar='Site Name', | |
| help='Name of the site to create') | |
| parser.add_argument('--debug', help='display debug information') |
| for package in reqPack: | |
| finalPackageResult = { | |
| 'name': package | |
| } | |
| # Find current installed version | |
| try: | |
| cur_ver = semver.Version.coerce(inPack[package]) | |
| except ValueError: | |
| if re.search("^v[0-9].*$", inPack[package]): |
| # Read the latest version available from packagist | |
| finalRes = [] | |
| for package in reqPack: | |
| finalPackageResult = { | |
| 'name': package | |
| } | |
| # Try to get info from packagist (works with or w/o repo) | |
| url = 'https://repo.packagist.org/packages/' + package + '.json' | |
| jsonMetaRes = requests.get(url) |
| # Which directory have composer.json and composer.lock | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('--path', help='Relative directory that contains the composer files') | |
| cdir = parser.parse_args().path | |
| # Reads composer.json for constraints | |
| reqPack = {} | |
| with open(cdir +'/composer.json') as json_file: | |
| data = json.loads(json.dumps(json.load(json_file))) | |
| for package in data['require']: |