You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate internal callers off deprecated function wrappers
Rewrite every in-repo call site (production, tests, examples) from the
deprecated non-context wrappers to their Context variants, inserting
context.Background() to preserve behavior. Deprecated wrappers are left in
place so this is behavior-preserving and builds green on its own.
An AST codemod derives each transform from the wrapper body and applies it as
a text edit to the original call source (renaming the function and inserting
the context argument in place), so existing arguments, inline comments, and
formatting are preserved exactly.
// GetPrivateIpsOfEc2InstancesContextE gets the private IP address of the given EC2 Instance in the given region. Returns a map of instance ID to IP address.
// GetPublicIpsOfEc2InstancesContextE gets the public IP address of the given EC2 Instance in the given region. Returns a map of instance ID to IP address.
0 commit comments